diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2014-11-08 11:42:54 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2014-11-08 11:42:54 -0800 |
commit | 57076f6ca4ae37cf2d0cc91fa7b4de688df1be1c (patch) | |
tree | 914ecde35aa0fb84b855a2fadd88f376a803d3b4 /lib/spack/env | |
parent | 55bf243f166e38451026813fa2bdc2c90263d1aa (diff) | |
download | spack-57076f6ca4ae37cf2d0cc91fa7b4de688df1be1c.tar.gz spack-57076f6ca4ae37cf2d0cc91fa7b4de688df1be1c.tar.bz2 spack-57076f6ca4ae37cf2d0cc91fa7b4de688df1be1c.tar.xz spack-57076f6ca4ae37cf2d0cc91fa7b4de688df1be1c.zip |
URL parsing improvements
Diffstat (limited to 'lib/spack/env')
-rwxr-xr-x | lib/spack/env/cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc index f68cb0b2cd..19ca31cace 100755 --- a/lib/spack/env/cc +++ b/lib/spack/env/cc @@ -275,9 +275,15 @@ for dir in "${libraries[@]}"; do args+=("-L$dir"); done for lib in "${libs[@]}"; do args+=("-l$lib"); done if [ "$mode" = ccld ]; then - for dir in "${rpaths[@]}"; do args+=("-Wl,-rpath=$dir"); done + for dir in "${rpaths[@]}"; do + args+=("-Wl,-rpath") + args+=("-Wl,$dir"); + done elif [ "$mode" = ld ]; then - for dir in "${rpaths[@]}"; do args+=("-rpath=$dir"); done + for dir in "${rpaths[@]}"; do + args+=("-rpath") + args+=("$dir"); + done fi # |