summaryrefslogtreecommitdiffstats
path: root/libcrypt
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-01-28 13:10:32 +0000
committerEric Andersen <andersen@codepoet.org>2002-01-28 13:10:32 +0000
commit75d013b16a0764bf393628d241f05729a81d9b8d (patch)
tree8bdf9f4e01c06afc2536a30ebe48e034a7da85e7 /libcrypt
parent03f7612acc323011a680c64d613badc62017d3fa (diff)
downloaduClibc-alpine-75d013b16a0764bf393628d241f05729a81d9b8d.tar.bz2
uClibc-alpine-75d013b16a0764bf393628d241f05729a81d9b8d.tar.xz
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 'libcrypt')
-rw-r--r--libcrypt/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcrypt/Makefile b/libcrypt/Makefile
index 7a449745e..73bebd9db 100644
--- a/libcrypt/Makefile
+++ b/libcrypt/Makefile
@@ -48,9 +48,9 @@ $(OBJS): %.o : %.c
$(OBJ): Makefile
shared: all
- $(LD) $(LDFLAGS) -o $(LIBCRYPT_SHARED_FULLNAME) \
- -soname=$(LIBCRYPT_SHARED).$(MAJOR_VERSION) \
- --whole-archive $(LIBCRYPT) -Bdynamic -L$(TOPDIR)/lib -lc;
+ $(LD) $(LDFLAGS) -soname=$(LIBCRYPT_SHARED).$(MAJOR_VERSION) \
+ -o $(LIBCRYPT_SHARED_FULLNAME) --whole-archive $(LIBCRYPT) \
+ --no-whole-archive -L$(TOPDIR)/lib -lc;
install -d $(TOPDIR)lib
rm -f $(TOPDIR)lib/$(LIBCRYPT_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBCRYPT_SHARED).$(MAJOR_VERSION)
install -m 644 $(LIBCRYPT_SHARED_FULLNAME) $(TOPDIR)lib;