[Buildroot] Makefile: follow symlinks when excluding files from being stripped.

Umesh Nerlige Ramappa umesh.nerlige.ramappa at intel.com
Thu Aug 1 21:05:42 UTC 2019


In BR2_STRIP_EXCLUDE_FILES="libfoo.so" libfoo.so is mostly a symlink
pointing to the actual library file. The actual library file is still
stripped. While specifying the actual library file as libfoo.so.x.x
will work just fine, a user of buildroot need not know what version
of the library is being picked.

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at intel.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 9cce934990..8f689401ba 100644
--- a/Makefile
+++ b/Makefile
@@ -624,7 +624,7 @@ STRIP_FIND_COMMON_CMD = \
 		-prune -o \
 	) \
 	$(if $(call qstrip,$(BR2_STRIP_EXCLUDE_FILES)), \
-		-not \( $(call findfileclauses,$(call qstrip,$(BR2_STRIP_EXCLUDE_FILES))) \) )
+		-not -follow \( $(call findfileclauses,$(call qstrip,$(BR2_STRIP_EXCLUDE_FILES))) \) )
 
 # Regular stripping for everything, except libpthread, ld-*.so and
 # kernel modules:
-- 
2.20.1



More information about the buildroot mailing list