target-finalize: do not strip libthread_db.so
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@gentoo.org> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
68ad6d4ee0
commit
c98bc88e32
3
Makefile
3
Makefile
@ -418,7 +418,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) $(STRIP_STRIP_UNNEEDED)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user