summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/spack/env/cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc
index c156b7b607..41933f5e1f 100755
--- a/lib/spack/env/cc
+++ b/lib/spack/env/cc
@@ -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