summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/spack/env/cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc
index 853a19dfdd..c3d1135722 100755
--- a/lib/spack/env/cc
+++ b/lib/spack/env/cc
@@ -188,7 +188,7 @@ while [ -n "$1" ]; do
done
elif [[ $arg == '-rpath' ]]; then
shift; arg="$1"
- if [[ $arg != "-Wl,*" ]]; then
+ if [[ $arg != '-Wl,'* ]]; then
die "-Wl,-rpath was not followed by -Wl,*"
fi
arg="${arg#-Wl,}"