summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbecker33 <becker33@llnl.gov>2017-11-10 11:42:37 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2017-11-10 11:42:37 -0800
commita7b817b494ba9138da2e869cc16fb0f049b0dc65 (patch)
treec4149f518d4f9c1cb788dfdb41b16b4f8a1960c8
parentf6ed8d856a93314bd6247ca7275bf93fced70ca2 (diff)
downloadspack-a7b817b494ba9138da2e869cc16fb0f049b0dc65.tar.gz
spack-a7b817b494ba9138da2e869cc16fb0f049b0dc65.tar.bz2
spack-a7b817b494ba9138da2e869cc16fb0f049b0dc65.tar.xz
spack-a7b817b494ba9138da2e869cc16fb0f049b0dc65.zip
elfutils: add --no-as-needed flag for library ordering issue (#6256)
* add --no-as-needed flag for library ordering issue libelf * fix syntax error.
-rw-r--r--var/spack/repos/builtin/packages/elfutils/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/elfutils/package.py b/var/spack/repos/builtin/packages/elfutils/package.py
index 8b91769346..2db5d71d3a 100644
--- a/var/spack/repos/builtin/packages/elfutils/package.py
+++ b/var/spack/repos/builtin/packages/elfutils/package.py
@@ -51,6 +51,7 @@ class Elfutils(AutotoolsPackage):
def configure_args(self):
# configure doesn't use LIBS correctly
+ gettext_lib = self.spec['gettext'].prefix.lib,
return [
- 'LDFLAGS=-L%s -lintl' % self.spec['gettext'].prefix.lib,
+ 'LDFLAGS=-Wl,--no-as-needed -L%s -lintl' % gettext_lib,
'--enable-maintainer-mode']