summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ldso/ldso/Makefile2
-rw-r--r--libc/Makefile2
-rw-r--r--libcrypt/Makefile2
-rw-r--r--libm/Makefile2
-rw-r--r--libpthread/Makefile2
-rw-r--r--libresolv/Makefile2
-rw-r--r--libutil/Makefile2
7 files changed, 7 insertions, 7 deletions
diff --git a/ldso/ldso/Makefile b/ldso/ldso/Makefile
index dca099787..8a320c4e1 100644
--- a/ldso/ldso/Makefile
+++ b/ldso/ldso/Makefile
@@ -45,7 +45,7 @@ all: lib
lib:: ldso.h $(OBJS) $(DLINK_OBJS)
$(LD) -e _dl_boot $(LDFLAGS) -nostdlib -shared -o $(LDSO_FULLNAME) \
- -soname=$(UCLIBC_LDSO) $(OBJS)
+ -soname=$(UCLIBC_LDSO) -Bstatic $(OBJS)
install -d $(TOPDIR)lib
install -m 755 $(LDSO_FULLNAME) $(TOPDIR)lib
(cd $(TOPDIR)lib && ln -sf $(LDSO_FULLNAME) $(UCLIBC_LDSO))
diff --git a/libc/Makefile b/libc/Makefile
index 83a53bf6a..778e21f7d 100644
--- a/libc/Makefile
+++ b/libc/Makefile
@@ -48,7 +48,7 @@ shared: $(TOPDIR)lib/$(LIBNAME)
/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 $(LDSO)
+ ./tmp/libgcc-need.a -Bdynamic $(LDSO)
@/bin/true #rm -rf tmp
install -d $(TOPDIR)lib
rm -f $(TOPDIR)lib/$(SHARED_FULLNAME)
diff --git a/libcrypt/Makefile b/libcrypt/Makefile
index 1b24da5f8..7a449745e 100644
--- a/libcrypt/Makefile
+++ b/libcrypt/Makefile
@@ -50,7 +50,7 @@ $(OBJ): Makefile
shared: all
$(LD) $(LDFLAGS) -o $(LIBCRYPT_SHARED_FULLNAME) \
-soname=$(LIBCRYPT_SHARED).$(MAJOR_VERSION) \
- --whole-archive $(LIBCRYPT) -L$(TOPDIR)/lib -lc;
+ --whole-archive $(LIBCRYPT) -Bdynamic -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;
diff --git a/libm/Makefile b/libm/Makefile
index e0faf0700..c1b0270e0 100644
--- a/libm/Makefile
+++ b/libm/Makefile
@@ -95,7 +95,7 @@ shared: all
set -x -e; \
$(LD) $(LDFLAGS) -o $(LIBM_SHARED_FULLNAME) \
-soname=$(LIBM_SHARED).$(MAJOR_VERSION) \
- --whole-archive $(LIBM) -L$(TOPDIR)/lib -lc; \
+ --whole-archive $(LIBM) -Bdynamic -L$(TOPDIR)/lib -lc; \
install -d $(TOPDIR)lib; \
rm -f $(TOPDIR)lib/$(LIBM_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBM_SHARED).$(MAJOR_VERSION); \
install -m 644 $(LIBM_SHARED_FULLNAME) $(TOPDIR)lib; \
diff --git a/libpthread/Makefile b/libpthread/Makefile
index d72967e97..2fde589e5 100644
--- a/libpthread/Makefile
+++ b/libpthread/Makefile
@@ -50,7 +50,7 @@ $(OBJ): Makefile
shared: all
$(LD) $(LDFLAGS) -o $(LIBPTHREAD_SHARED_FULLNAME) \
-soname=$(LIBPTHREAD_SHARED).$(MAJOR_VERSION) \
- --whole-archive $(LIBPTHREAD) -L$(TOPDIR)/lib -lc;
+ --whole-archive $(LIBPTHREAD) -Bdynamic -L$(TOPDIR)/lib -lc;
install -d $(TOPDIR)lib
rm -f $(TOPDIR)lib/$(LIBPTHREAD_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBPTHREAD_SHARED).$(MAJOR_VERSION)
install -m 644 $(LIBPTHREAD_SHARED_FULLNAME) $(TOPDIR)lib;
diff --git a/libresolv/Makefile b/libresolv/Makefile
index 3a5a59e74..a19ab0f39 100644
--- a/libresolv/Makefile
+++ b/libresolv/Makefile
@@ -51,7 +51,7 @@ $(OBJ): Makefile
shared: all
$(LD) $(LDFLAGS) -o $(LIBRESOLV_SHARED_FULLNAME) \
-soname=$(LIBRESOLV_SHARED).$(MAJOR_VERSION) \
- --whole-archive $(LIBRESOLV) -L$(TOPDIR)/lib -lc;
+ --whole-archive $(LIBRESOLV) -Bdynamic -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;
diff --git a/libutil/Makefile b/libutil/Makefile
index 1ea51ef83..a6351a26f 100644
--- a/libutil/Makefile
+++ b/libutil/Makefile
@@ -52,7 +52,7 @@ $(OBJS): %.o : %.c
shared: all
$(LD) $(LDFLAGS) -o $(LIBUTIL_SHARED_FULLNAME) \
-soname=$(LIBUTIL_SHARED).$(MAJOR_VERSION) \
- --whole-archive $(LIBUTIL) -L$(TOPDIR)/lib -lc;
+ --whole-archive $(LIBUTIL) -Bdynamic -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/;