Skip Menu |

This queue is for tickets about the ExtUtils-Embed CPAN distribution.

Report information
The Basics
Id: 4396
Status: new
Priority: 0/
Queue: ExtUtils-Embed

Owner: Nobody in particular
Requestors: Marek.Rouchal [...]
Cc: mschwern [...]

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

Subject: wrong guess for -lperl if it is not on UNIX
CC: mschwern [...]
Download (untitled) / with headers
text/plain 984b
I have perl-5.8.2 on Solaris 7 (Sparc), compiled with gcc-3.2.3 and ithreads and a shared libperl with non-standard name (mine is I noticed ExtUtils::Embed does not use the correct name. The patch below works fine here, and should be generic enough to works elsewhere. Pity that lib_ext and dlext are not consistent: the first includes the dot, the second not. Best regards, Marek --- /opt/perl_5.8.2/share/lib/ExtUtils/ 2003-11-14 13:24:26.000000000 +0100 +++ /opt/perl_5.8.2/share/lib/ExtUtils/ 2003-11-14 13:29:21.000000000 +0100 @@ -226,7 +226,9 @@ $libperl = $Config{libperl}; } else { - $libperl = (grep(/^-l\w*perl\w*$/, @link_args))[0] || "-lperl"; + $libperl = (grep(/^-l\w*perl\w*$/, @link_args))[0] || + ($Config{libperl} =~ /^lib(\w+)(\Q$Config{lib_ext} \E|\.\Q$Config{dlext}\E)$/ && "-l$1") || + "-lperl"; } my $lpath = File::Spec->catdir($Config{archlibexp}, 'CORE');

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to