Fix gettext: Problem with libxml2 (#8132)

* See https://github.com/spack/spack/issues/2882

* code review

* Correctly access lib directory
This commit is contained in:
Elizabeth Fischer 2018-05-26 11:18:14 -04:00 committed by Adam J. Stewart
parent 7a741e7e08
commit 8203c4f55b

View File

@ -84,8 +84,10 @@ def configure_args(self):
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')