Skip to contentSkip to conversation

Makefile: follow symlinks when excluding files from being stripped.

Buildroot Umesh Nerlige Ramappa 1 participant 1 message Aug 1, 2019 Kbuild

lore
Share & tools
lore
#0 lore raw

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.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index 9cce934990..8f689401ba 100644
@@ -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:
Signature · 1 line
2.20.1