We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cb5eb3c + 2243383 commit 5e5bb90Copy full SHA for 5e5bb90
Makefile.PL
@@ -19,7 +19,9 @@ sub search_lib {
19
}
20
my $libbase = 'lib' . substr($lib, 2) . $Config{lib_ext};
21
my $libbase_so = 'lib' . substr($lib, 2) . "." . $Config{so};
22
- for my $path (split(' ', $Config{libpth})) {
+ my @paths = split(' ', $Config{libpth});
23
+ push @paths, $ENV{PERL_LIBPATH} if exists $ENV{PERL_LIBPATH};
24
+ for my $path (@paths) {
25
if (-f $path . '/' . $libbase) {
26
print "$path/$libbase\n";
27
print "Found '$path/$libbase'.\n";
0 commit comments