diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-07-30 03:32:41 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-07-30 03:32:41 +0000 |
commit | a707192f6c249d397594b2d6a0b2f38f3cdf4da7 (patch) | |
tree | a835c0f9b5cfdb45b85a2d545865c85c1861e7a1 /ldso/Makefile | |
parent | 51987d4c7d42027a86c8fbedda559dde76a18a21 (diff) |
Teach libdl to use normal libc symbols whenever possible, i.e. malloc
rather than _dl_malloc, fprintf rather than _dl_printf, etc.
-Erik
Diffstat (limited to 'ldso/Makefile')
-rw-r--r-- | ldso/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
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 |