Makefile: follow symlinks when excluding files from being stripped.
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 <[email protected]>
--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
@@ -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