From 6ae7886f84e8ca856854fa9ee1a15547f171e8c6 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Tue, 20 Nov 2012 07:18:11 +0000 Subject: Makefile: fix thread libraries stripping Strip libthread_db the same as any other library, but strip libpthread with --strip-debug. See the relevant mailing list discussion [1] for additional details. [1] http://lists.busybox.net/pipermail/buildroot/2012-October/060126.html Signed-off-by: Richard Braun Signed-off-by: Peter Korsgaard --- package/Makefile.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'package') diff --git a/package/Makefile.in b/package/Makefile.in index 2dd81c72c..8dea51eff 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -126,6 +126,7 @@ TARGET_CXX := $(CCACHE) $(TARGET_CXX) endif ifeq ($(BR2_STRIP_strip),y) +STRIP_STRIP_DEBUG:=--strip-debug STRIP_STRIP_UNNEEDED:=--strip-unneeded STRIP_STRIP_ALL:=--strip-all TARGET_STRIP=$(TARGET_CROSS)strip @@ -133,6 +134,7 @@ STRIPCMD=$(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note KSTRIPCMD=$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) endif ifeq ($(BR2_STRIP_sstrip),y) +STRIP_STRIP_DEBUG:= STRIP_STRIP_UNNEEDED:= STRIP_STRIP_ALL:= TARGET_STRIP=$(HOST_DIR)/usr/bin/$(GNU_TARGET_NAME)-sstrip -- cgit v1.2.3