summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-12-11 13:23:14 +0000
committerEric Andersen <andersen@codepoet.org>2004-12-11 13:23:14 +0000
commit537a1b30e6247f276b013cc07c5b4e46b5a23eca (patch)
tree67c6bb9709465c02d6de67a8d790e2986aa35475
parent98521f61f3d4d3f33581ad0fc2b0792539bf577e (diff)
We can't strip libpthread or libthread_db can't help gdb debug ptheads
-rw-r--r--libpthread/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/libpthread/Makefile b/libpthread/Makefile
index e07d0be8c..709d22b49 100644
--- a/libpthread/Makefile
+++ b/libpthread/Makefile
@@ -31,10 +31,14 @@ LIBTHREAD_DB_SHARED_FULLNAME=libthread_db-$(MAJOR_VERSION).$(MINOR_VERSION).$(SU
DIRS=
ifeq ($(strip $(UCLIBC_HAS_THREADS)),y)
DIRS+=linuxthreads
+ LDFLAGS_THREAD:= $(CPU_LDFLAGS-y) -shared --warn-common --warn-once -z combreloc -z defs
ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y)
DIRS+=linuxthreads_db
LDFLAGS_THREAD_DB:= $(CPU_LDFLAGS-y) -shared --warn-common --warn-once -z combreloc
endif
+ifeq ($(DODEBUG),n)
+ LDFLAGS_THREAD_DB+=-s
+endif
endif
ifeq ($(strip $(UCLIBC_CTOR_DTOR)),y)
@@ -72,7 +76,7 @@ $(OBJ): Makefile
shared: all
if [ -f $(LIBPTHREAD) ] ; then \
set -e; \
- $(LD) $(LDFLAGS) -soname=$(LIBPTHREAD_SHARED).$(MAJOR_VERSION) \
+ $(LD) $(LDFLAGS_THREAD) -soname=$(LIBPTHREAD_SHARED).$(MAJOR_VERSION) \
-o $(LIBPTHREAD_SHARED_FULLNAME) $(SHARED_START_FILES) --whole-archive $(LIBPTHREAD) \
--no-whole-archive $(TOPDIR)libc/misc/internals/interp.o \
-L$(TOPDIR)lib -lc $(LDADD_LIBFLOAT) $(LIBGCC) \