Fix build of xerces-c (#7611)

The build requires libiconv (but it doesn't find it when not providing
LDFLAGS).
This commit is contained in:
Eric Müller 2018-04-06 22:46:47 +02:00 committed by Adam J. Stewart
parent c328c667c0
commit 58a57bf391

View file

@ -37,5 +37,10 @@ class XercesC(AutotoolsPackage):
version('3.1.4', 'd04ae9d8b2dee2157c6db95fa908abfd')
depends_on('libiconv')
def setup_environment(self, spack_env, run_env):
spack_env.append_flags('LDFLAGS', self.spec['libiconv'].libs.ld_flags)
def configure_args(self):
return ['--disable-network']