summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ldso/libdl/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
6 files changed, 6 insertions, 6 deletions
diff --git a/ldso/libdl/Makefile b/ldso/libdl/Makefile
index 97b7234a0..dd82882bd 100644
--- a/ldso/libdl/Makefile
+++ b/ldso/libdl/Makefile
@@ -52,7 +52,7 @@ $(OBJ): Makefile
shared: all
$(LD) $(LDFLAGS) -o $(LIBDL_SHARED_FULLNAME) \
-soname=$(LIBDL_SHARED).$(MAJOR_VERSION) \
- --whole-archive $(LIBDL);
+ --whole-archive $(LIBDL) -L$(TOPDIR)/lib -lc;
install -d $(TOPDIR)lib
rm -f $(TOPDIR)lib/$(LIBDL_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBDL_SHARED).$(MAJOR_VERSION)
install -m 644 $(LIBDL_SHARED_FULLNAME) $(TOPDIR)lib;
diff --git a/libcrypt/Makefile b/libcrypt/Makefile
index 9e054f055..1b24da5f8 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);
+ --whole-archive $(LIBCRYPT) -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 fc1322c35..e0faf0700 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); \
+ --whole-archive $(LIBM) -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 28f5764a9..d72967e97 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);
+ --whole-archive $(LIBPTHREAD) -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 920555c88..3a5a59e74 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);
+ --whole-archive $(LIBRESOLV) -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 4609086df..1ea51ef83 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);
+ --whole-archive $(LIBUTIL) -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/;