diff options
author | Erik Schnetter <schnetter@gmail.com> | 2016-03-03 10:40:06 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2016-03-06 23:27:30 -0500 |
commit | 265ef337a8cdb7397aa01858077787ca4c2669fb (patch) | |
tree | 7d00549d0127e296abca66a23b03fa5d52f20571 | |
parent | 9868333e8e2586ffc55ee996a48ef62601a9c874 (diff) | |
download | spack-265ef337a8cdb7397aa01858077787ca4c2669fb.tar.gz spack-265ef337a8cdb7397aa01858077787ca4c2669fb.tar.bz2 spack-265ef337a8cdb7397aa01858077787ca4c2669fb.tar.xz spack-265ef337a8cdb7397aa01858077787ca4c2669fb.zip |
Don't quote -rpath literal
-rwxr-xr-x | lib/spack/env/cc | 6 |
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,*" |