summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@googlemail.com>2017-09-22 21:14:53 +0200
committerGitHub <noreply@github.com>2017-09-22 21:14:53 +0200
commitf1fbcfa9713b78792223c808607483eb61ef2a24 (patch)
tree5649bdfff9465297903d1458feee64e8138bfb0e /var
parenta646ec1fff6e627d2b9241ad602a11cf31a0fef9 (diff)
downloadspack-f1fbcfa9713b78792223c808607483eb61ef2a24.tar.gz
spack-f1fbcfa9713b78792223c808607483eb61ef2a24.tar.bz2
spack-f1fbcfa9713b78792223c808607483eb61ef2a24.tar.xz
spack-f1fbcfa9713b78792223c808607483eb61ef2a24.zip
plumed: fixed possible linking issue (#5425)
Due to the logic in configure.ac, we may be using both the system linker (LD_RO='ld -r -o') and the linker tied to the compiler (LD=$CXX). This may produce weird link-time errors when the two executables are not the same. The PR works around the issue disabling 'ld -r'
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/plumed/package.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/plumed/package.py b/var/spack/repos/builtin/packages/plumed/package.py
index 6896cbeb77..078af3a24a 100644
--- a/var/spack/repos/builtin/packages/plumed/package.py
+++ b/var/spack/repos/builtin/packages/plumed/package.py
@@ -148,7 +148,12 @@ class Plumed(AutotoolsPackage):
# with MPI you should use:
#
# > ./configure CXX="$MPICXX"
- configure_opts = []
+
+ # The configure.ac script may detect the wrong linker for
+ # LD_RO which causes issues at link time. Here we work around
+ # the issue saying we have no LD_RO executable.
+ configure_opts = ['--disable-ld-r']
+
# If using MPI then ensure the correct compiler wrapper is used.
if '+mpi' in spec:
configure_opts.extend([