From 499617897bc73f4a4d0c0ca211d34adeaaae1bca Mon Sep 17 00:00:00 2001 From: scheibelp Date: Fri, 25 Aug 2017 11:02:36 -0700 Subject: Link extra_rpaths from compilers.yaml at build time (#5211) --- lib/spack/env/cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3-60-g2f50