summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2017-05-01 04:16:28 +0200
committerTodd Gamblin <tgamblin@llnl.gov>2017-04-30 19:16:28 -0700
commitc7a5b2eaa9f5bf50f46567ee831425bef9caa157 (patch)
treeb26b1e6537f4f3d23618d2b9ac0e21ce2bfa2e06
parent4421013290d0d888b328d9ccc365b15b07a815ec (diff)
downloadspack-c7a5b2eaa9f5bf50f46567ee831425bef9caa157.tar.gz
spack-c7a5b2eaa9f5bf50f46567ee831425bef9caa157.tar.bz2
spack-c7a5b2eaa9f5bf50f46567ee831425bef9caa157.tar.xz
spack-c7a5b2eaa9f5bf50f46567ee831425bef9caa157.zip
disable rpaths on Darwin when arg=-r mode=ccld (#3930)
This fixes build of Ipopt package.
-rwxr-xr-xlib/spack/env/cc2
1 files changed, 1 insertions, 1 deletions
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