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 /libutil/Makefile | |
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 'libutil/Makefile')
-rw-r--r-- | libutil/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libutil/Makefile b/libutil/Makefile index a6351a26f..7ed8239e2 100644 --- a/libutil/Makefile +++ b/libutil/Makefile @@ -50,9 +50,9 @@ $(OBJS): %.o : %.c $(STRIPTOOL) -x -R .note -R .comment $*.o shared: all - $(LD) $(LDFLAGS) -o $(LIBUTIL_SHARED_FULLNAME) \ - -soname=$(LIBUTIL_SHARED).$(MAJOR_VERSION) \ - --whole-archive $(LIBUTIL) -Bdynamic -L$(TOPDIR)/lib -lc; + $(LD) $(LDFLAGS) -soname=$(LIBUTIL_SHARED).$(MAJOR_VERSION) \ + -o $(LIBUTIL_SHARED_FULLNAME) --whole-archive $(LIBUTIL) \ + --no-whole-archive -L$(TOPDIR)/lib -lc; install -d $(TOPDIR)lib rm -f $(TOPDIR)lib/$(LIBUTIL_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBUTIL_SHARED).$(MAJOR_VERSION) install -m 644 $(LIBUTIL_SHARED_FULLNAME) $(TOPDIR)lib/; |