summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2016-02-14 10:43:55 -0500
committerErik Schnetter <schnetter@gmail.com>2016-02-14 10:43:55 -0500
commita06e29fecbaf100f089c1eab7c6447cd469b95f6 (patch)
tree479816854ea363029065577f6844bfb051fb52a2 /lib
parent43670cbbd01562f6748f3ee6e2505be52e24bccb (diff)
downloadspack-a06e29fecbaf100f089c1eab7c6447cd469b95f6.tar.gz
spack-a06e29fecbaf100f089c1eab7c6447cd469b95f6.tar.bz2
spack-a06e29fecbaf100f089c1eab7c6447cd469b95f6.tar.xz
spack-a06e29fecbaf100f089c1eab7c6447cd469b95f6.zip
More quoting experiments
Diffstat (limited to 'lib')
-rwxr-xr-xlib/spack/env/cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc
index 37483e0073..853a19dfdd 100755
--- a/lib/spack/env/cc
+++ b/lib/spack/env/cc
@@ -175,22 +175,22 @@ while [ -n "$1" ]; do
;;
-Wl,*)
arg="${1#-Wl,}"
- if [[ $arg = "-rpath=*" ]]; then
+ # TODO: Handle multiple -Wl, continuations of -Wl,-rpath
+ 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,*"
fi
- # TODO: Handle multiple -Wl, continuations of -Wl,-rpath
arg="${arg#-Wl,}"
for rpath in ${arg//,/ }; do
rpaths+=("$rpath")