summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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,*"