diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-01-28 13:10:32 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-01-28 13:10:32 +0000 |
commit | 75d013b16a0764bf393628d241f05729a81d9b8d (patch) | |
tree | 8bdf9f4e01c06afc2536a30ebe48e034a7da85e7 /libc | |
parent | 03f7612acc323011a680c64d613badc62017d3fa (diff) |
Fix the bug where binaries built with older toolchains would
segfault. Turns out that 'ld -nostdlib' was the culprit.
Who wouldof thought...
-Erik
Diffstat (limited to 'libc')
-rw-r--r-- | libc/Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/Makefile b/libc/Makefile index 778e21f7d..0d5d758eb 100644 --- a/libc/Makefile +++ b/libc/Makefile @@ -46,9 +46,8 @@ shared: $(TOPDIR)lib/$(LIBNAME) $(AR) rv ./tmp/libgcc-need.a @(cd tmp && CC=$(CC) LD=$(LD) NM=$(NM) AR=$(AR) \ /bin/sh ../../extra/scripts/get-needed-libgcc-objects.sh) - $(LD) $(LDFLAGS) -o $(SHARED_FULLNAME) -soname=$(SHARED_MAJORNAME) \ - --dynamic-linker $(DYNAMIC_LINKER) --whole-archive $(LIBNAME) \ - ./tmp/libgcc-need.a -Bdynamic $(LDSO) + $(LD) $(LDFLAGS) -soname=$(SHARED_MAJORNAME) -o $(SHARED_FULLNAME) \ + --whole-archive ./tmp/libgcc-need.a $(LIBNAME) --no-whole-archive $(LDSO) @/bin/true #rm -rf tmp install -d $(TOPDIR)lib rm -f $(TOPDIR)lib/$(SHARED_FULLNAME) |