summaryrefslogtreecommitdiff
path: root/lib/spack/env/cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/env/cc')
-rwxr-xr-xlib/spack/env/cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc
index 19ca31cace..fa85bb595e 100755
--- a/lib/spack/env/cc
+++ b/lib/spack/env/cc
@@ -86,19 +86,19 @@ done
#
command=$(basename "$0")
case "$command" in
- cc|gcc|c89|c99|clang)
+ cc|gcc|c89|c99|clang|xlc)
command="$SPACK_CC"
language="C"
;;
- c++|CC|g++|clang++)
+ c++|CC|g++|clang++|xlC)
command="$SPACK_CXX"
language="C++"
;;
- f77)
+ f77|xlf)
command="$SPACK_F77"
language="Fortran 77"
;;
- fc|f90|f95)
+ fc|f90|f95|xlf90)
command="$SPACK_FC"
language="Fortran 90"
;;
@@ -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")