Do not advise to strip object files, it can be harmful

Reported by:	koobs
With hat:	portmgr
This commit is contained in:
Antoine Brodin
2015-12-25 23:22:47 +00:00
parent 6b86f30b90
commit 2e5d78ca45

View File

@@ -174,7 +174,7 @@ stripped() {
# Split file and result into 2 lines and read separately to ensure
# files with spaces are kept intact.
# Using readelf -h ... /ELF Header:/ will match on all ELF files.
find ${STAGEDIR} -type f ! -name '*.a' \
find ${STAGEDIR} -type f ! -name '*.a' ! -name '*.o' \
-exec readelf -S {} + 2>/dev/null | awk '\
/File:/ {sub(/File: /, "", $0); file=$0} \
/SYMTAB/ {print file}' |