summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-11-28 18:58:25 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-11-28 18:58:25 +0000
commitb11c3c9f9d8cb7f2e586a0cb99a9b1ca17f1b55c (patch)
tree8db40a6654607f459218a32e906200426f9aa39b /lib
parent9661b5442a5f8dacc64d54eb1de98575f21de5f2 (diff)
downloadperl-b11c3c9f9d8cb7f2e586a0cb99a9b1ca17f1b55c.tar.gz
Liblist tweak suggested by Swen Thuemmler <Swen.Thuemmler@paderlinx.de>;
add C<$Config{installarchlib}/CORE> to the default locations searched on win32 p4raw-id: //depot/perl@2368
Diffstat (limited to 'lib')
-rw-r--r--lib/ExtUtils/Liblist.pm12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/ExtUtils/Liblist.pm b/lib/ExtUtils/Liblist.pm
index b072c1292c..1710c5e796 100644
--- a/lib/ExtUtils/Liblist.pm
+++ b/lib/ExtUtils/Liblist.pm
@@ -225,6 +225,9 @@ sub _win32_ext {
my $search = 1;
my($fullname, $thislib, $thispth);
+ # add "$Config{installarchlib}/CORE" to default search path
+ push @libpath, "$Config{installarchlib}/CORE";
+
foreach (Text::ParseWords::quotewords('\s+', 0, $potential_libs)){
$thislib = $_;
@@ -240,8 +243,8 @@ sub _win32_ext {
# if searching is disabled, do compiler-specific translations
unless ($search) {
- s/^-L/-libpath:/ if $VC;
s/^-l(.+)$/$1.lib/ unless $GC;
+ s/^-L/-libpath:/ if $VC;
push(@extralibs, $_);
$found++;
next;
@@ -625,9 +628,10 @@ Unix-OS/2 version in several respects:
If C<$potential_libs> is empty, the return value will be empty.
Otherwise, the libraries specified by C<$Config{libs}> (see Config.pm)
will be appended to the list of C<$potential_libs>. The libraries
-will be searched for in the directories specified in C<$potential_libs>
-as well as in C<$Config{libpth}>. For each library that is found, a
-space-separated list of fully qualified library pathnames is generated.
+will be searched for in the directories specified in C<$potential_libs>,
+C<$Config{libpth}>, and in C<$Config{installarchlib}/CORE>.
+For each library that is found, a space-separated list of fully qualified
+library pathnames is generated.
=item *