Nice ... and we now have (in lib/ExtUtils/Liblist/Kid.pm):
if ($GC and exists $ENV{LIBRARY_PATH} and $ENV LIBRARY_PATH}) {
push @libpath, split /;/, $ENV{LIBRARY_PATH};
}
This means that (with MinGW), if I have my 3rd party headers & libraries in places like
C:\_32\msys\1.0\local\include and
C:\_32\msys\1.0\local\lib I can set my CPATH environment variable to
C:\_32\msys\1.0\local\include and my LIBRARY_PATH environment variable to
C:\_32\msys\1.0\local\lib, and I can build modules that need to find those 3rd party libraries using CPAN.
Without that crucial piece of code the libraries would not be found and I would either have to modify the Makefile.PL or manually run (eg)
perl Makefile.PL LIBS="-LC:/_32/msys/1.0/local/lib -lmpc -lmpfr -lgmp"And they did it all for me !! (Well ... probably not *just* for me ... but, afaik, I'm the only person who wants to take advantage of this.) Thanks
jand. I'm rapt.
Schwern declined my request to include the same piece of code into the official EU::MM release. Hopefully, this change *will* eventually be built into the official EU::MM, whereupon the same convenience would automatically become available to those who use Strawberry Perl, and to those who build their own MinGW perl from source.
Cheers,
Rob