summaryrefslogtreecommitdiff
path: root/lib/spack/env
diff options
context:
space:
mode:
authorMatthew LeGendre <legendre1@llnl.gov>2015-03-27 13:58:57 -0700
committerMatthew LeGendre <legendre1@llnl.gov>2015-03-27 13:58:57 -0700
commita4cce9eb69048b082e0233499ec764d7c5abec0c (patch)
treeec885b6e34a0d95ea183057a305ee1838e999569 /lib/spack/env
parentaf92250c7e0c7fc59cfb4381928ed4a547f2dcf3 (diff)
downloadspack-a4cce9eb69048b082e0233499ec764d7c5abec0c.tar.gz
spack-a4cce9eb69048b082e0233499ec764d7c5abec0c.tar.bz2
spack-a4cce9eb69048b082e0233499ec764d7c5abec0c.tar.xz
spack-a4cce9eb69048b082e0233499ec764d7c5abec0c.zip
Only convert -L<path> to -Wl,-rpath,<path> in compiler scripts if <path> points into the spack install area
This specifically fixes problems with building gcc, as build and system directories were turning in in gcc library rpaths.
Diffstat (limited to 'lib/spack/env')
-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 19ca31cace..5c431f5325 100755
--- a/lib/spack/env/cc
+++ b/lib/spack/env/cc
@@ -262,7 +262,7 @@ done
# Include all -L's and prefix/whatever dirs in rpath
for dir in "${libraries[@]}"; do
- [ "$dir" != "." ] && rpaths+=("$dir")
+ [[ dir = $SPACK_INSTALL* ]] && rpaths+=("$dir")
done
rpaths+=("$SPACK_PREFIX/lib")
rpaths+=("$SPACK_PREFIX/lib64")