summaryrefslogtreecommitdiff
path: root/libpthread
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>2005-05-28 23:22:12 +0000
committerJoakim Tjernlund <joakim.tjernlund@transmode.se>2005-05-28 23:22:12 +0000
commit83bb7f2166ccec164942b010130b285676d7cf3b (patch)
tree43d673589fe614370d875ec176ab41c6fcdd878e /libpthread
parentb81c57129f47b15158d5654990634f6f625c5c81 (diff)
Filter out any -z defs since this lib will have undefined symbols that
are in gdb.
Diffstat (limited to 'libpthread')
-rw-r--r--libpthread/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/libpthread/Makefile b/libpthread/Makefile
index 12411e6df..ee7cbf6a0 100644
--- a/libpthread/Makefile
+++ b/libpthread/Makefile
@@ -43,6 +43,9 @@ endif
ALL_SUBDIRS = linuxthreads linuxthreads_db
+# Remove any -z defs since this lib will have undefined symbols
+LIBTHREAD_DB_LDFLAGS := $(subst -z defs,,$(LDFLAGS))
+
all: $(LIBPTHREAD) $(LIBTHREAD_DB)
$(LIBPTHREAD): subdirs
@@ -83,7 +86,7 @@ ifeq ($(strip $(UCLIBC_HAS_THREADS)),y)
$(TOPDIR)lib/$(LIBPTHREAD_SHARED).$(MAJOR_VERSION)
endif
ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y)
- $(LD) $(LDFLAGS) --warn-unresolved-symbols -soname=$(LIBTHREAD_DB_SHARED).1 \
+ $(LD) $(LIBTHREAD_DB_LDFLAGS) --warn-unresolved-symbols -soname=$(LIBTHREAD_DB_SHARED).1 \
-o $(LIBTHREAD_DB_SHARED_FULLNAME) --whole-archive $(LIBTHREAD_DB) \
--no-whole-archive $(TOPDIR)libc/misc/internals/interp.o \
-L$(TOPDIR)lib -lc $(LDADD_LIBFLOAT) $(LIBGCC)