Subject: | Devel::CheckLib breaks build of Math-BigInt-GMP-1.49 |
Hi,
The Math-BigInt-GMP-1.49 Makefile.PL contains:
check_lib_or_exit(lib => 'gmp', header => 'gmp.h', @ARGV);
On MS Windows, if I want to install Math-BigInt-GMP-1.49, I first need to comment out that line - after which the module builds, tests and installs flawlessly.
Otherwise I get an error about the header and/or library not being found and the Makefile.PL aborts. (I forget the exact error message.)
On *my* system gmp.h is automatically locatable because $ENV{CPATH} specifies its location, and -lgmp is automatically resolved because $Config{libpth} specifies the location of libgmp.a.
I would have expected that Devel::CheckLib would be alert to those options, but apparently that's not so.
I don't like Devel::CheckLib, I don't use it, and I don't see why authors want to make use of it - so, understandably, I haven't done any digging :-)
However, I *am* prepared to do some investigating if you have trouble working out why/how Devel::CheckLib is blocking my attempts to build Math-BigInt-GMP-1.49.
Cheers,
Rob