diff options
author | Erik Schnetter <schnetter@gmail.com> | 2015-12-22 15:49:14 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2015-12-22 15:49:14 -0500 |
commit | 3427174eb065a6e74fc279076423c2c5c5e8e737 (patch) | |
tree | 141efd3c0f8eeee76593618b30f0d142be0da9e2 /lib | |
parent | 611537eaed1a1e4d65d87184569b9723a1cf8128 (diff) | |
download | spack-3427174eb065a6e74fc279076423c2c5c5e8e737.tar.gz spack-3427174eb065a6e74fc279076423c2c5c5e8e737.tar.bz2 spack-3427174eb065a6e74fc279076423c2c5c5e8e737.tar.xz spack-3427174eb065a6e74fc279076423c2c5c5e8e737.zip |
Correct quoting
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/spack/env/cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc index 565f959ca4..4ac8f2e7f4 100755 --- a/lib/spack/env/cc +++ b/lib/spack/env/cc @@ -265,7 +265,7 @@ for dep in "${deps[@]}"; do if [[ -d $dep/lib ]]; then # libraries+=("$dep/lib") - if [[ $mode = ccld ]]; then + if [[ $mode = ccld ]]; then args=("-L$dep/lib" "-Wl,-rpath,$dep/lib" "${args[@]}") elif [[ $mode = ld ]]; then args=("-L$dep/lib" "-rpath" "$dep/lib" "${args[@]}") @@ -289,14 +289,14 @@ if [[ $mode = ccld ]]; then # args=("-Wl,-rpath,$dir" "${args[@]}") # fi # done - args=("-Wl,-rpath,$SPACK_PREFIX/lib" "-Wl,-rpath,$SPACK_PREFIX/lib64" ${args[@]}) + args=("-Wl,-rpath,$SPACK_PREFIX/lib" "-Wl,-rpath,$SPACK_PREFIX/lib64" "${args[@]}") elif [[ $mode = ld ]]; then # for dir in "${libraries[@]}"; do # if [[ dir = $SPACK_INSTALL* ]]; then # args=("-rpath" "$dir" "${args[@]}") # fi # done - args=("-rpath" "$SPACK_PREFIX/lib" "-rpath" "$SPACK_PREFIX/lib64" ${args[@]}) + args=("-rpath" "$SPACK_PREFIX/lib" "-rpath" "$SPACK_PREFIX/lib64" "${args[@]}") fi # @@ -325,8 +325,7 @@ for dir in "${env_path[@]}"; do done export PATH -full_command=("$command") -full_command+=("${args[@]}") +full_command=("$command" "${args[@]}") # # Write the input and output commands to debug logs if it's asked for. |