summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")