summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElizabeth Fischer <rpf2116@columbia.edu>2018-05-26 11:18:14 -0400
committerAdam J. Stewart <ajstewart426@gmail.com>2018-05-26 10:18:14 -0500
commit8203c4f55b5a411a7864ddeca62f9331d66e77fb (patch)
tree539f16970a662c74d61b7203d60078bcf5ce4772
parent7a741e7e082df5e6d34240445564d5c99d6702c3 (diff)
downloadspack-8203c4f55b5a411a7864ddeca62f9331d66e77fb.tar.gz
spack-8203c4f55b5a411a7864ddeca62f9331d66e77fb.tar.bz2
spack-8203c4f55b5a411a7864ddeca62f9331d66e77fb.tar.xz
spack-8203c4f55b5a411a7864ddeca62f9331d66e77fb.zip
Fix gettext: Problem with libxml2 (#8132)
* See https://github.com/spack/spack/issues/2882 * code review * Correctly access lib directory
-rw-r--r--var/spack/repos/builtin/packages/gettext/package.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/gettext/package.py b/var/spack/repos/builtin/packages/gettext/package.py
index edbe120fe6..c36d518ef3 100644
--- a/var/spack/repos/builtin/packages/gettext/package.py
+++ b/var/spack/repos/builtin/packages/gettext/package.py
@@ -84,8 +84,10 @@ class Gettext(AutotoolsPackage):
config_args.append('--disable-curses')
if '+libxml2' in spec:
- config_args.append('--with-libxml2-prefix={0}'.format(
+ config_args.append('CPPFLAGS=-I{0}/include'.format(
spec['libxml2'].prefix))
+ config_args.append('LDFLAGS=-L{0} -Wl,-rpath,{0}'.format(
+ spec['libxml2'].libs.directories[0]))
else:
config_args.append('--with-included-libxml')