summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/xerces-c/package.py5
1 files changed, 5 insertions, 0 deletions
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']