Link extra_rpaths from compilers.yaml at build time (#5211)

This commit is contained in:
scheibelp 2017-08-25 11:02:36 -07:00 committed by Todd Gamblin
parent 9a1fd166aa
commit 499617897b

2
lib/spack/env/cc vendored
View File

@ -328,8 +328,10 @@ IFS=':' read -ra extra_rpaths <<< "$SPACK_COMPILER_EXTRA_RPATHS"
for extra_rpath in "${extra_rpaths[@]}"; do for extra_rpath in "${extra_rpaths[@]}"; do
if [[ $mode == ccld ]]; then if [[ $mode == ccld ]]; then
$add_rpaths && args=("$rpath$extra_rpath" "${args[@]}") $add_rpaths && args=("$rpath$extra_rpath" "${args[@]}")
args=("-L$extra_rpath" "${args[@]}")
elif [[ $mode == ld ]]; then elif [[ $mode == ld ]]; then
$add_rpaths && args=("-rpath" "$extra_rpath" "${args[@]}") $add_rpaths && args=("-rpath" "$extra_rpath" "${args[@]}")
args=("-L$extra_rpath" "${args[@]}")
fi fi
done done