disable rpaths on Darwin when arg=-r mode=ccld (#3930)
This fixes build of Ipopt package.
This commit is contained in:
parent
4421013290
commit
c7a5b2eaa9
1 changed files with 1 additions and 1 deletions
2
lib/spack/env/cc
vendored
2
lib/spack/env/cc
vendored
|
@ -218,7 +218,7 @@ fi
|
||||||
add_rpaths=true
|
add_rpaths=true
|
||||||
if [[ ($mode == ld || $mode == ccld) && "$SPACK_SHORT_SPEC" =~ "darwin" ]]; then
|
if [[ ($mode == ld || $mode == ccld) && "$SPACK_SHORT_SPEC" =~ "darwin" ]]; then
|
||||||
for arg in "$@"; do
|
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
|
add_rpaths=false
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue