diff options
author | Elizabeth Fischer <rpf2116@columbia.edu> | 2018-05-26 11:18:14 -0400 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2018-05-26 10:18:14 -0500 |
commit | 8203c4f55b5a411a7864ddeca62f9331d66e77fb (patch) | |
tree | 539f16970a662c74d61b7203d60078bcf5ce4772 | |
parent | 7a741e7e082df5e6d34240445564d5c99d6702c3 (diff) | |
download | spack-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.py | 4 |
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') |