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/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/ldso/Makefile')
-rw-r--r-- | ldso/ldso/Makefile | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ldso/ldso/Makefile b/ldso/ldso/Makefile index db493c3bc..3c1d04530 100644 --- a/ldso/ldso/Makefile +++ b/ldso/ldso/Makefile @@ -70,18 +70,13 @@ XXFLAGS := $(XXFLAGS:-fomit-frame-pointer=) all: lib -lib:: dl-progname.h $(OBJS) $(DLINK_OBJS) +lib:: $(OBJS) $(DLINK_OBJS) $(LD) $(LDFLAGS) -e _dl_boot -soname=$(UCLIBC_LDSO) \ -o $(LDSO_FULLNAME) $(OBJS) $(LIBGCC); $(INSTALL) -d $(TOPDIR)lib $(INSTALL) -m 755 $(LDSO_FULLNAME) $(TOPDIR)lib $(LN) -sf $(LDSO_FULLNAME) $(TOPDIR)lib/$(UCLIBC_LDSO) -dl-progname.h: Makefile - echo "const char *_dl_progname=\""$(UCLIBC_LDSO)"\";" > dl-progname.h - echo "#include \"$(TARGET_ARCH)/elfinterp.c\"" >> dl-progname.h - - $(COBJS): %.o : %.c $(CC) $(XXFLAGS) -I../libdl -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o @@ -93,4 +88,4 @@ $(AOBJS): %.o : %.S ldso.o: $(CSRC) clean: - $(RM) $(UCLIBC_LDSO)* $(OBJS) $(LDSO_FULLNAME)* core *.o *.a *.s *.i dl-progname.h ldso.h *~ + $(RM) $(UCLIBC_LDSO)* $(OBJS) $(LDSO_FULLNAME)* core *.o *.a *.s *.i ldso.h *~ |