hi Derek, Not sure about how/whether these propagate, but I usually use the "INC" attribute of ExtUtils::MakeMaker for custom -I flags, e.g.:
$ perl Makefile.PL INC="-I/opt/local/include" && make ... it might also work to pass INC directly to 'make' itself: $ perl Makefile.PL && make INC="-I/opt/local/include" ... or via the environment: $ export INC="-I/opt/local/include" && perl Makefile.PL && make You can even set the environment variable PERL_MM_OPT for common EU::MM options, e.g. in ~/.bashrc export PERL_MM_OPT='INC="-I/opt/local/include" OPTIMIZE="-O2 -pipe -march=native -mtune=native"' ... and then just calling: $ perl Makefile.PL && make more gory details in https://metacpan.org/pod/ExtUtils::MakeMaker marmosets, Bryan On Thu, Jun 10, 2021 at 6:16 AM Derek Lamb <[email protected]> wrote: > Hi all (esp. Ed), > > So I just caught up on about 3 months of PDL emails. And I'm trying to > build the current git master. At Makefile.PL stage, the build is > complaining that it can't find gd.h. The file is at > /opt/local/include/gd.h on my Mac (w/ MacPorts). My ~/.perldl.conf used to > tell PDL where to look, but in commit 48e24ed > <https://github.com/PDLPorters/pdl/commit/48e24ed636d43bb9b40cc12d6f2adc4fe8fb4c16>, > support for that was removed "because it's 2021". Indeed :-) . So, what's > the hip and modern way to tell Makefile.PL where to look? > > thanks, > Derek > _______________________________________________ > pdl-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pdl-general > -- Bryan Jurish "There is *always* one more bug." [email protected] -Lubarsky's Law of Cybernetic Entomology
_______________________________________________ pdl-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pdl-general
