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
This commit is contained in:
George Hartzell 2017-06-05 12:17:12 -07:00 committed by Adam J. Stewart
parent 6b9d485e06
commit baad627944

View File

@ -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