From 75d013b16a0764bf393628d241f05729a81d9b8d Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 28 Jan 2002 13:10:32 +0000 Subject: Fix the bug where binaries built with older toolchains would segfault. Turns out that 'ld -nostdlib' was the culprit. Who wouldof thought... -Erik --- libresolv/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libresolv') diff --git a/libresolv/Makefile b/libresolv/Makefile index a19ab0f39..1da125a62 100644 --- a/libresolv/Makefile +++ b/libresolv/Makefile @@ -49,9 +49,9 @@ $(OBJS): %.o : %.c $(OBJ): Makefile shared: all - $(LD) $(LDFLAGS) -o $(LIBRESOLV_SHARED_FULLNAME) \ - -soname=$(LIBRESOLV_SHARED).$(MAJOR_VERSION) \ - --whole-archive $(LIBRESOLV) -Bdynamic -L$(TOPDIR)/lib -lc; + $(LD) $(LDFLAGS) -soname=$(LIBRESOLV_SHARED).$(MAJOR_VERSION) \ + -o $(LIBRESOLV_SHARED_FULLNAME) --whole-archive $(LIBRESOLV) \ + --no-whole-archive -L$(TOPDIR)/lib -lc; install -d $(TOPDIR)lib rm -f $(TOPDIR)lib/$(LIBRESOLV_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBRESOLV_SHARED).$(MAJOR_VERSION) install -m 644 $(LIBRESOLV_SHARED_FULLNAME) $(TOPDIR)lib; -- cgit v1.2.3