diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-08-09 13:05:29 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-08-09 13:05:29 +0000 |
commit | 8329f998f899f5b0a80cbdf3d0682bdb1e7f8d4c (patch) | |
tree | 303618c8b9b278fb4bb0a632391d122252a4f54b /ldso/ldso/Makefile | |
parent | bea67a752df6f8e1dfce75592fb7c371e5c8a212 (diff) |
Link ldso vs libgcc.a and eliminate baggage caused by
not previously linking vs libgcc
-Erik
Diffstat (limited to 'ldso/ldso/Makefile')
-rw-r--r-- | ldso/ldso/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ldso/ldso/Makefile b/ldso/ldso/Makefile index ff1d9ea48..e647bc972 100644 --- a/ldso/ldso/Makefile +++ b/ldso/ldso/Makefile @@ -26,6 +26,7 @@ TOPDIR=../../ DOPIC=true include $(TOPDIR)Rules.mak LDSO_FULLNAME=ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so +LIBGCC:=$(shell $(CC) -print-libgcc-file-name) # Enable this to enable all the code needed to support traditional ldd # (i.e. where the shared library loader does all the heavy lifting) @@ -80,7 +81,7 @@ all: lib lib:: ldso.h $(OBJS) $(DLINK_OBJS) $(LD) $(LDFLAGS) -e _dl_boot -soname=$(UCLIBC_LDSO) \ - -o $(LDSO_FULLNAME) $(OBJS); + -o $(LDSO_FULLNAME) $(OBJS) $(LIBGCC); install -d $(TOPDIR)lib install -m 755 $(LDSO_FULLNAME) $(TOPDIR)lib (cd $(TOPDIR)lib && ln -sf $(LDSO_FULLNAME) $(UCLIBC_LDSO)) |