Subject: | Update hints/linux.pl to check if libpthread is required |
Hi,
thanks for the very useful module (all the more so that it is
cross-platform.)
On Linux you may need to add -lpthread to LIBS if it is not already one
of the libraries that the perl configuration reports.
I've attached an updated hints file that does this check and adds to
LIBS if necessary.
Thanks again for the work on the module.
Subject: | linux.pl |
use Config;
symlink "os/Linux.c", "OS.c" || die "Could not link os/Linux.c to os/OS.c\n";
if ( $Config{libs} !~ /(?:^|\s)-lpthread(?:\s|$)/ )
{
$self->{LIBS} = ['-lpthread'];
}