summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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']