From a7b817b494ba9138da2e869cc16fb0f049b0dc65 Mon Sep 17 00:00:00 2001 From: becker33 Date: Fri, 10 Nov 2017 11:42:37 -0800 Subject: [PATCH] elfutils: add --no-as-needed flag for library ordering issue (#6256) * add --no-as-needed flag for library ordering issue libelf * fix syntax error. --- var/spack/repos/builtin/packages/elfutils/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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']