disable rpaths on Darwin when arg=-r mode=ccld (#3930)

This fixes build of Ipopt package.
This commit is contained in:
Denis Davydov 2017-05-01 04:16:28 +02:00 committed by Todd Gamblin
parent 4421013290
commit c7a5b2eaa9

2
lib/spack/env/cc vendored
View file

@ -218,7 +218,7 @@ fi
add_rpaths=true
if [[ ($mode == ld || $mode == ccld) && "$SPACK_SHORT_SPEC" =~ "darwin" ]]; then
for arg in "$@"; do
if [[ ($arg == -r && $mode == ld) || ($arg == -Wl,-r && $mode == ccld) ]]; then
if [[ ($arg == -r && $mode == ld) || ($arg == -r && $mode == ccld) || ($arg == -Wl,-r && $mode == ccld) ]]; then
add_rpaths=false
break
fi