summaryrefslogtreecommitdiff
path: root/libpthread
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread')
-rw-r--r--libpthread/linuxthreads.old/Makefile.in2
-rw-r--r--libpthread/linuxthreads.old_db/Makefile.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/linuxthreads.old/Makefile.in b/libpthread/linuxthreads.old/Makefile.in
index 3aec4c562..ca3ded8f6 100644
--- a/libpthread/linuxthreads.old/Makefile.in
+++ b/libpthread/linuxthreads.old/Makefile.in
@@ -11,7 +11,7 @@ CFLAGS+=$(SSP_ALL_CFLAGS)
# This stuff will not compile without at least -O1
CFLAGS:=$(CFLAGS:-O0=-O1)
-LDFLAGS:=$(LDFLAGS_NOSTRIP)
+LDFLAGS:=$(LDFLAGS_NOSTRIP) -z defs
ifeq ($(UCLIBC_CTOR_DTOR),y)
SHARED_START_FILES:=$(top_builddir)lib/crti.o $(LIBGCC_DIR)crtbeginS.o
diff --git a/libpthread/linuxthreads.old_db/Makefile.in b/libpthread/linuxthreads.old_db/Makefile.in
index 0e29c7c18..ec007e90a 100644
--- a/libpthread/linuxthreads.old_db/Makefile.in
+++ b/libpthread/linuxthreads.old_db/Makefile.in
@@ -12,7 +12,7 @@ PT_MAJOR_VERSION:=$(MAJOR_VERSION)
CFLAGS+=-DLIBPTHREAD_SO="\"libpthread.so.$(PT_MAJOR_VERSION)\""
# Remove any -z defs since this lib will have undefined symbols
-LDFLAGS:=$(subst -z defs,,$(LDFLAGS)) --warn-unresolved-symbols
+LDFLAGS:=$(LDFLAGS_NOSTRIP) -s --warn-unresolved-symbols
ifeq ($(PTHREADS_DEBUG_SUPPORT),y)
STRIP_FLAGS:=-X --strip-debug -R .note -R .comment