Skip Menu |

This queue is for tickets about the Devel-CheckLib CPAN distribution.

Report information
The Basics
Id: 58563
Status: rejected
Priority: 0/
Queue: Devel-CheckLib

People
Owner: Nobody in particular
Requestors: david [...] edeca.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Add a check_lib without the exit
We discussed this before and I believe it was added, but does not appear to have made the CPAN. It would be nice if there was a check_lib that doesn't exit, so that optional libraries can be looked for. One example from a module I maintain: on systems where libgthread2.0 is present, a C library I use will link to it. My XS module should therefore also be linked to gthread2.0 or it doesn't work (spotted via CPAN testers, ta). I don't need to exit in this case, just check whether it is present and then add -lgthread2.0 to the list of extra LIBS. I would provide a patch, but I'm pretty sure you implemented this already and just haven't released yet.
Already fixed. This is in 0.699_002 on the CPAN and will be in 0.7 when it's released. There's no ETA for that as it has some bugs. You can get the functionality you want by eval-ing the assert_lib function and catching when it dies.