remove use of unknown environment variable in lib/spack/env/cc (#821)

This commit is contained in:
Patrick Gartung 2016-04-21 21:15:54 -05:00 committed by Todd Gamblin
parent dd84a57580
commit d5d1e89cbd

2
lib/spack/env/cc vendored
View file

@ -162,7 +162,7 @@ fi
# It doesn't work with -rpath.
# This variable controls whether they are added.
add_rpaths=true
if [[ mode == ld && $OSTYPE == darwin* ]]; then
if [[ $mode == ld && "$SPACK_SHORT_SPEC" =~ "darwin" ]]; then
for arg in "$@"; do
if [[ $arg == -r ]]; then
add_rpaths=false