From 58a57bf391fe376d529b8afda8b5381c09638c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20M=C3=BCller?= Date: Fri, 6 Apr 2018 22:46:47 +0200 Subject: [PATCH] Fix build of xerces-c (#7611) The build requires libiconv (but it doesn't find it when not providing LDFLAGS). --- var/spack/repos/builtin/packages/xerces-c/package.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/var/spack/repos/builtin/packages/xerces-c/package.py b/var/spack/repos/builtin/packages/xerces-c/package.py index bbdbd714d4..5aae3bb92f 100644 --- a/var/spack/repos/builtin/packages/xerces-c/package.py +++ b/var/spack/repos/builtin/packages/xerces-c/package.py @@ -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']