summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads
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/linuxthreads
parenta890668b77f74d629335f8880d9ede6336d1f0a2 (diff)
Make it so debugging pthreads works, even with DODEBUG turned off
-Erik
Diffstat (limited to 'libpthread/linuxthreads')
-rw-r--r--libpthread/linuxthreads/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/libpthread/linuxthreads/Makefile b/libpthread/linuxthreads/Makefile
index 2c87e3aa2..cb0894224 100644
--- a/libpthread/linuxthreads/Makefile
+++ b/libpthread/linuxthreads/Makefile
@@ -55,7 +55,12 @@ ar-target: $(OBJS)
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
+ $(STRIPTOOL) -X --strip-debug -R .note -R .comment $*.o
+ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y)
+ $(STRIPTOOL) -X --strip-debug -R .note -R .comment $*.o
+else
$(STRIPTOOL) -x -R .note -R .comment $*.o
+endif
clean:
rm -f *.[oa] *~ core