From d7147f9226520ad9a688c53802a4c6c2c53592fc Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 11 Jan 2002 20:11:12 +0000 Subject: Remove the now obsolete d-link tree. Update things to cope with the new naming -Erik --- ldso/Makefile | 4 ++-- ldso/libdl/Makefile | 2 +- ldso/libdl/dlib.c | 7 +++---- ldso/libdl/libdl.c | 7 +++---- ldso/util/Makefile | 10 +++++----- 5 files changed, 14 insertions(+), 16 deletions(-) (limited to 'ldso') diff --git a/ldso/Makefile b/ldso/Makefile index 722757ebd..8eedd40b0 100644 --- a/ldso/Makefile +++ b/ldso/Makefile @@ -23,12 +23,12 @@ TOPDIR=../ include $(TOPDIR)Rules.mak -ALL_SUBDIRS = d-link libdl util +ALL_SUBDIRS = ldso libdl util all: ifeq ($(strip $(BUILD_UCLIBC_LDSO)),true) - $(MAKE) -C $(LIBRARY_CACHE) d-link; + $(MAKE) -C $(LIBRARY_CACHE) ldso; endif shared: diff --git a/ldso/libdl/Makefile b/ldso/libdl/Makefile index cccd9e473..97b7234a0 100644 --- a/ldso/libdl/Makefile +++ b/ldso/libdl/Makefile @@ -44,7 +44,7 @@ ar-target: $(OBJS) $(OBJS): %.o : %.c - $(TARGET_CC) -I../d-link -I../d-link/$(TARGET_ARCH) $(TARGET_CFLAGS) -c $< -o $@ + $(CC) -I../ldso -I../ldso/$(TARGET_ARCH) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o $(OBJ): Makefile diff --git a/ldso/libdl/dlib.c b/ldso/libdl/dlib.c index 540b6640f..901613f30 100644 --- a/ldso/libdl/dlib.c +++ b/ldso/libdl/dlib.c @@ -7,11 +7,10 @@ #include #include #include "dlfcn.h" -#include "sysdep.h" -#include "syscall.h" -#include "hash.h" -#include "string.h" #include "linuxelf.h" +#include "ld_syscall.h" +#include "ld_hash.h" +#include "ld_string.h" extern int _dl_error_number; extern struct r_debug *_dl_debug_addr; diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c index 540b6640f..901613f30 100644 --- a/ldso/libdl/libdl.c +++ b/ldso/libdl/libdl.c @@ -7,11 +7,10 @@ #include #include #include "dlfcn.h" -#include "sysdep.h" -#include "syscall.h" -#include "hash.h" -#include "string.h" #include "linuxelf.h" +#include "ld_syscall.h" +#include "ld_hash.h" +#include "ld_string.h" extern int _dl_error_number; extern struct r_debug *_dl_debug_addr; diff --git a/ldso/util/Makefile b/ldso/util/Makefile index 3814bfd2b..d514f3f9a 100644 --- a/ldso/util/Makefile +++ b/ldso/util/Makefile @@ -27,16 +27,16 @@ TARGETS=ldd.uclibc ldd readelf ldconfig all: $(TARGETS) readsoname.o: readsoname.c readsoname2.c - $(TARGET_CC) $(TARGET_CFLAGS) -c $< -o $@ + $(CC) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o ldconfig.o: ldconfig.c - $(TARGET_CC) $(TARGET_CFLAGS) -DUCLIBC_TARGET_PREFIX=\"$(TARGET_PREFIX)\" \ + $(CC) $(CFLAGS) -DUCLIBC_TARGET_PREFIX=\"$(TARGET_PREFIX)\" \ -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o readelf: readelf.c - $(TARGET_CC) $(TARGET_CFLAGS) -static readelf.c -o $@ + $(CC) $(CFLAGS) -static readelf.c -o $@ $(STRIPTOOL) -x -R .note -R .comment $@ ifeq ($(strip $(LIBRARY_CACHE)),) @@ -44,12 +44,12 @@ ldconfig: echo "LIBRARY_CACHE disabled -- not building ldconfig" else ldconfig: ldconfig.o readsoname.o - $(TARGET_CC) $(TARGET_CFLAGS) -static $^ -o $@ + $(CC) $(CFLAGS) -static $^ -o $@ $(STRIPTOOL) -x -R .note -R .comment $@ endif ldd: ldd.c - $(TARGET_CC) $(TARGET_CFLAGS) -DUCLIBC_TARGET_PREFIX=\"$(TARGET_PREFIX)\" \ + $(CC) $(CFLAGS) -DUCLIBC_TARGET_PREFIX=\"$(TARGET_PREFIX)\" \ -DUCLIBC_DEVEL_PREFIX=\"$(DEVEL_PREFIX)\" \ -DUCLIBC_BUILD_DIR=\"$(shell cd $(TOPDIR) && pwd)\" \ -DUCLIBC_LDSO=\"$(UCLIBC_LDSO)\" \ -- cgit v1.2.3