elfutils: add --no-as-needed flag for library ordering issue (#6256)

* add --no-as-needed flag for library ordering issue libelf

* fix syntax error.
This commit is contained in:
becker33 2017-11-10 11:42:37 -08:00 committed by Todd Gamblin
parent f6ed8d856a
commit a7b817b494

View file

@ -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']