summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2016-03-03 10:40:06 -0500
committerErik Schnetter <schnetter@gmail.com>2016-03-06 23:27:30 -0500
commit265ef337a8cdb7397aa01858077787ca4c2669fb (patch)
tree7d00549d0127e296abca66a23b03fa5d52f20571 /lib
parent9868333e8e2586ffc55ee996a48ef62601a9c874 (diff)
downloadspack-265ef337a8cdb7397aa01858077787ca4c2669fb.tar.gz
spack-265ef337a8cdb7397aa01858077787ca4c2669fb.tar.bz2
spack-265ef337a8cdb7397aa01858077787ca4c2669fb.tar.xz
spack-265ef337a8cdb7397aa01858077787ca4c2669fb.zip
Don't quote -rpath literal
Diffstat (limited to 'lib')
-rwxr-xr-xlib/spack/env/cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc
index c3d1135722..fb0df79d33 100755
--- a/lib/spack/env/cc
+++ b/lib/spack/env/cc
@@ -176,17 +176,17 @@ while [ -n "$1" ]; do
-Wl,*)
arg="${1#-Wl,}"
# TODO: Handle multiple -Wl, continuations of -Wl,-rpath
- if [[ $arg == '-rpath='* ]]; then
+ if [[ $arg == -rpath=* ]]; then
arg="${arg#-rpath=}"
for rpath in ${arg//,/ }; do
rpaths+=("$rpath")
done
- elif [[ $arg == '-rpath,'* ]]; then
+ elif [[ $arg == -rpath,* ]]; then
arg="${arg#-rpath,}"
for rpath in ${arg//,/ }; do
rpaths+=("$rpath")
done
- elif [[ $arg == '-rpath' ]]; then
+ elif [[ $arg == -rpath ]]; then
shift; arg="$1"
if [[ $arg != '-Wl,'* ]]; then
die "-Wl,-rpath was not followed by -Wl,*"