[Buildroot] [PATCH] do not strip libthread_db.so
Mike Frysinger
vapier at gentoo.org
Sat Nov 20 10:29:28 UTC 2010
For proper threading debug support, the libthread_db.so library cannot
be stripped on the target. This is because the target gdbserver will
also load up this library at runtime and poke around its symbols.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
Makefile | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index 2e4ccba..e351e79 100644
--- a/Makefile
+++ b/Makefile
@@ -424,7 +424,8 @@ ifneq ($(BR2_HAVE_DOCUMENTATION),y)
rm -rf $(TARGET_DIR)/usr/share/gtk-doc
rmdir $(TARGET_DIR)/usr/share 2>/dev/null || :
endif
- find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIPCMD) 2>/dev/null || true
+ find $(TARGET_DIR) -type f -perm +111 '!' -name 'libthread_db.so*' | \
+ xargs $(STRIPCMD) 2>/dev/null || true
find $(TARGET_DIR)/lib/modules -type f -name '*.ko' | \
xargs -r $(STRIPCMD) -R .comment -R .note -g --strip-unneeded
--
1.7.3.2
More information about the buildroot
mailing list