From c7a5b2eaa9f5bf50f46567ee831425bef9caa157 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Mon, 1 May 2017 04:16:28 +0200 Subject: disable rpaths on Darwin when arg=-r mode=ccld (#3930) This fixes build of Ipopt package. --- lib/spack/env/cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/env/cc b/lib/spack/env/cc index e6cca1c51f..aa3c2aa4b1 100755 --- a/lib/spack/env/cc +++ b/lib/spack/env/cc @@ -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 -- cgit v1.2.3-70-g09d2