summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2016-02-12 12:37:03 -0500
committerErik Schnetter <schnetter@gmail.com>2016-02-13 14:54:18 -0500
commit9a2c1090a6f40db762ac155d7d25063c2965c841 (patch)
treed64844b221f145e89e614c290f372e93002829d3 /lib
parentdc6a33b716dd6712da2e65a78a6a3ed98ca72d4d (diff)
downloadspack-9a2c1090a6f40db762ac155d7d25063c2965c841.tar.gz
spack-9a2c1090a6f40db762ac155d7d25063c2965c841.tar.bz2
spack-9a2c1090a6f40db762ac155d7d25063c2965c841.tar.xz
spack-9a2c1090a6f40db762ac155d7d25063c2965c841.zip
Handle -Wl,-rpath,... syntax
Diffstat (limited to 'lib')
-rwxr-xr-xlib/spack/env/cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc
index c156b7b607..41933f5e1f 100755
--- a/lib/spack/env/cc
+++ b/lib/spack/env/cc
@@ -181,6 +181,11 @@ while [ -n "$1" ]; do
for rpath in ${arg//,/ }; do
rpaths+=("$rpath")
done
+ elif [[ $arg = -rpath,* ]]; then
+ arg="${arg#-rpath,}"
+ for rpath in ${arg//,/ }; do
+ rpaths+=("$rpath")
+ done
elif [[ $arg = -rpath ]]; then
shift; arg="$1"
if [[ $arg != -Wl,* ]]; then