summaryrefslogtreecommitdiff
path: root/libpthread/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-03-11 20:08:01 +0000
committerEric Andersen <andersen@codepoet.org>2003-03-11 20:08:01 +0000
commit70fee13438609fb1eff4e4b293c92b02a6d2ec3b (patch)
treea8878467fb5700eb5ccc31e846e8e152b1930db5 /libpthread/Makefile
parenta890668b77f74d629335f8880d9ede6336d1f0a2 (diff)
Make it so debugging pthreads works, even with DODEBUG turned off
-Erik
Diffstat (limited to 'libpthread/Makefile')
-rw-r--r--libpthread/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/libpthread/Makefile b/libpthread/Makefile
index ac9f4a20c..22f0a0218 100644
--- a/libpthread/Makefile
+++ b/libpthread/Makefile
@@ -27,12 +27,14 @@ LIBPTHREAD_SHARED_FULLNAME=libpthread-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEV
LIBTHREAD_DB=libthread_db.a
LIBTHREAD_DB_SHARED=libthread_db.so.1
LIBTHREAD_DB_SHARED_FULLNAME=libthread_db-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
-
+
DIRS=
ifeq ($(strip $(UCLIBC_HAS_THREADS)),y)
DIRS+=linuxthreads
+ LDFLAGS_PTHREADS:= $(LDFLAGS)
ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y)
DIRS+=linuxthreads_db
+ LDFLAGS_PTHREADS:= $(CPU_LDFLAGS-y) -shared --warn-common --warn-once -z combreloc
endif
endif
@@ -76,7 +78,7 @@ $(OBJ): Makefile
shared: all
if [ -f $(LIBPTHREAD) ] ; then \
set -e; \
- $(LD) $(LDFLAGS) -soname=$(LIBPTHREAD_SHARED).$(MAJOR_VERSION) \
+ $(LD) $(LDFLAGS_PTHREADS) -soname=$(LIBPTHREAD_SHARED).$(MAJOR_VERSION) \
-o $(LIBPTHREAD_SHARED_FULLNAME) $(START_FILES) --whole-archive $(LIBPTHREAD) \
--no-whole-archive $(TOPDIR)/libc/misc/internals/interp.o \
-L$(TOPDIR)/lib -lc $(END_FILES); \