瀏覽代碼

nptl: handle PTHREADS_DEBUG_SUPPORT properly

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 15 年之前
父節點
當前提交
dcde81f05d
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      libpthread/nptl/Makefile.in

+ 3 - 4
libpthread/nptl/Makefile.in

@@ -290,13 +290,12 @@ $(top_builddir)lib/libpthread.so: $(PTHREAD_OUT)/libpthread_so.a $(libc.depend)
 	$(Q)echo "GROUP ( $(notdir $@).$(ABI_VERSION) libpthread_nonshared.a )" >> $@.tmp
 	$(Q)mv $@.tmp $@
 
+ifeq ($(PTHREADS_DEBUG_SUPPORT),y)
+$(PTHREAD_OUT)/libpthread_so.a: STRIP_FLAGS:=$(STRIP_FLAGS:-x=-X --strip-debug)
+endif
 $(PTHREAD_OUT)/libpthread_so.a: $(libpthread-so-y)
 	$(Q)$(RM) $@
-ifeq ($(PTHREADS_DEBUG_SUPPORT),y)
-	$(do_strip:-x=-X --strip-debug)
-else
 	$(do_strip)
-endif
 	$(do_ar)
 
 $(top_builddir)lib/libpthread.a: $(libpthread-a-y)