Commit c0dacedf authored by gsell's avatar gsell
Browse files

postinstall_Linux: stripping of binaries and libs added

parent ad6f7717
......@@ -24,6 +24,17 @@ postinstall_linux() {
cp "${libs[@]}" "${OTB_PREFIX}/lib"
fi
}
#
# strip binaries
#
strip_unneeded() {
for f in "${OTB_PREFIX}/bin/"*; do
file "$f" | grep -q "ELF 64-bit" && strip --strip-unneeded "$f"
done
for f in "${OTB_PREFIX}"/libexec/gcc/x86_64*/*/*; do
file "$f" | grep -q "ELF 64-bit" && strip --strip-unneeded "$f"
done
}
#
# set RPATH relative to $ORIGIN in all shared libraries and executables
......@@ -38,6 +49,7 @@ postinstall_linux() {
done < <(find "${OTB_PREFIX}/bin" "${OTB_PREFIX}/lib" -type f -printf "%d %p\n" )
copy_non_standard_system_libs
strip_unneeded
}
postinstall_linux
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment