Fix bug with lib64 RPATH setting in cc.
This commit is contained in:
parent
ec107b290f
commit
f3dd889d44
1 changed files with 2 additions and 2 deletions
4
lib/spack/env/cc
vendored
4
lib/spack/env/cc
vendored
|
@ -293,9 +293,9 @@ for dep in "${deps[@]}"; do
|
||||||
if [[ -d $dep/lib64 ]]; then
|
if [[ -d $dep/lib64 ]]; then
|
||||||
# libraries+=("$dep/lib64")
|
# libraries+=("$dep/lib64")
|
||||||
if [[ $mode = ccld ]]; then
|
if [[ $mode = ccld ]]; then
|
||||||
args=("-L$dep/lib" "-Wl,-rpath,$dep/lib" "${args[@]}")
|
args=("-L$dep/lib64" "-Wl,-rpath,$dep/lib64" "${args[@]}")
|
||||||
elif [[ $mode = ld ]]; then
|
elif [[ $mode = ld ]]; then
|
||||||
args=("-L$dep/lib" "-rpath" "$dep/lib" "${args[@]}")
|
args=("-L$dep/lib64" "-rpath" "$dep/lib64" "${args[@]}")
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue