Handle -Wl,-rpath,... syntax

This commit is contained in:
Erik Schnetter 2016-02-12 12:37:03 -05:00
parent dc6a33b716
commit 9a2c1090a6

5
lib/spack/env/cc vendored
View File

@ -181,6 +181,11 @@ while [ -n "$1" ]; do
for rpath in ${arg//,/ }; do
rpaths+=("$rpath")
done
elif [[ $arg = -rpath,* ]]; then
arg="${arg#-rpath,}"
for rpath in ${arg//,/ }; do
rpaths+=("$rpath")
done
elif [[ $arg = -rpath ]]; then
shift; arg="$1"
if [[ $arg != -Wl,* ]]; then