ExtUtils::Liblist - Determine Libraries to Use and How to Use Them

require ExtUtils::Liblist; ExtUtils::Liblist::ext($potential_libs, $Verbose);

This utility takes a list of libraries in the form -llib1 -llib2 -llib3 and returns lines suitable for inclusion in a Perl extension Makefile on the current platform. Extra library paths may be included with the form -L/another/path. This will affect the searches for all subsequent libraries.

ExtUtils::Liblist::ext() returns a list of four scalar values, which Makemaker will eventually use in constructing a Makefile, among other things. The values are:

Portability

This module deals with a lot of system dependencies and has quite a few architecture-specific ifs in the code.