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:
parent
7a741e7e08
commit
8203c4f55b
@ -84,8 +84,10 @@ def configure_args(self):
|
|||||||
config_args.append('--disable-curses')
|
config_args.append('--disable-curses')
|
||||||
|
|
||||||
if '+libxml2' in spec:
|
if '+libxml2' in spec:
|
||||||
config_args.append('--with-libxml2-prefix={0}'.format(
|
config_args.append('CPPFLAGS=-I{0}/include'.format(
|
||||||
spec['libxml2'].prefix))
|
spec['libxml2'].prefix))
|
||||||
|
config_args.append('LDFLAGS=-L{0} -Wl,-rpath,{0}'.format(
|
||||||
|
spec['libxml2'].libs.directories[0]))
|
||||||
else:
|
else:
|
||||||
config_args.append('--with-included-libxml')
|
config_args.append('--with-included-libxml')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user