From baad627944c9481737befd72bb6d8884ef28a432 Mon Sep 17 00:00:00 2001 From: George Hartzell Date: Mon, 5 Jun 2017 12:17:12 -0700 Subject: Need to help Makefile.PL find the expat bits (#4422) * Need to help Makefile.PL find the expat bits We need to provide Makefile.PL with a clue about where our expat bits live. We had the dependency, but I suspect that the lib was actually linking against a system version. * Use prefix.lib instead of building path myself Ditto with .include --- var/spack/repos/builtin/packages/perl-xml-parser/package.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/var/spack/repos/builtin/packages/perl-xml-parser/package.py b/var/spack/repos/builtin/packages/perl-xml-parser/package.py index 5ceb380473..23e1af9213 100644 --- a/var/spack/repos/builtin/packages/perl-xml-parser/package.py +++ b/var/spack/repos/builtin/packages/perl-xml-parser/package.py @@ -35,3 +35,13 @@ class PerlXmlParser(PerlPackage): version('2.44', 'af4813fe3952362451201ced6fbce379') depends_on('expat') + + def configure_args(self): + args = [] + + p = self.spec['expat'].prefix.lib + args.append('EXPATLIBPATH={0}'.format(p)) + p = self.spec['expat'].prefix.include + args.append('EXPATINCPATH={0}'.format(p)) + + return args -- cgit v1.2.3-70-g09d2