From a707192f6c249d397594b2d6a0b2f38f3cdf4da7 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 30 Jul 2004 03:32:41 +0000 Subject: Teach libdl to use normal libc symbols whenever possible, i.e. malloc rather than _dl_malloc, fprintf rather than _dl_printf, etc. -Erik --- ldso/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'ldso/Makefile') diff --git a/ldso/Makefile b/ldso/Makefile index 3836a01d3..802d4563a 100644 --- a/ldso/Makefile +++ b/ldso/Makefile @@ -36,7 +36,13 @@ else echo "Not building libdl" endif -headers: +include/dl-progname.h: Makefile + echo "const char *_dl_progname=\""$(UCLIBC_LDSO)"\";" \ + > include/dl-progname.h + echo -e "#include \"$(TARGET_ARCH)/elfinterp.c\"" \ + >> include/dl-progname.h + +headers: include/dl-progname.h $(LN) -fs $(TOPDIR)../include/elf.h include/ $(LN) -fs ../ldso/$(TARGET_ARCH)/dl-startup.h include/ $(LN) -fs ../ldso/$(TARGET_ARCH)/dl-syscalls.h include/ @@ -45,4 +51,5 @@ headers: clean: set -e ; for d in $(ALL_SUBDIRS) ; do $(MAKE) -C $$d $@ ; done -find . -name '*~' | xargs $(RM) - $(RM) include/elf.h include/boot1_arch.h include/ld_syscalls.h include/ld_sysdep.h + $(RM) include/elf.h include/boot1_arch.h include/ld_syscalls.h \ + include/ld_sysdep.h include/dl-progname.h -- cgit v1.2.3