summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsupport/scripts/fix-rpath6
1 files changed, 6 insertions, 0 deletions
diff --git a/support/scripts/fix-rpath b/support/scripts/fix-rpath
index 15705a3b0d..fa138ca15a 100755
--- a/support/scripts/fix-rpath
+++ b/support/scripts/fix-rpath
@@ -56,6 +56,7 @@ EOF
# ELF files should not be in these sub-directories
HOST_EXCLUDEPATHS="/share/terminfo"
STAGING_EXCLUDEPATHS="/usr/include /usr/share/terminfo"
+TARGET_EXCLUDEPATHS="/lib/firmware"
main() {
local rootdir
@@ -106,6 +107,11 @@ main() {
target)
rootdir="${TARGET_DIR}"
+
+ for excludepath in ${TARGET_EXCLUDEPATHS}; do
+ find_args+=( "-path" "${TARGET_DIR}""${excludepath}" "-prune" "-o" )
+ done
+
# we don't want $ORIGIN-based rpaths but absolute paths without rootdir.
# we also want to remove rpaths pointing to /lib or /usr/lib.
sanitize_extra_args+=( "--no-standard-lib-dirs" )
OpenPOWER on IntegriCloud