diff options
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/spack/env/cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc index afec3eefaa..e63c371318 100755 --- a/lib/spack/env/cc +++ b/lib/spack/env/cc @@ -328,8 +328,10 @@ IFS=':' read -ra extra_rpaths <<< "$SPACK_COMPILER_EXTRA_RPATHS" for extra_rpath in "${extra_rpaths[@]}"; do if [[ $mode == ccld ]]; then $add_rpaths && args=("$rpath$extra_rpath" "${args[@]}") + args=("-L$extra_rpath" "${args[@]}") elif [[ $mode == ld ]]; then $add_rpaths && args=("-rpath" "$extra_rpath" "${args[@]}") + args=("-L$extra_rpath" "${args[@]}") fi done |