summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGerrit P. Haase <gp@familiehaase.de>2001-12-09 21:31:28 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-09 18:36:20 +0000
commit41f1c18b7f5c96c7e2342be26f828b975f27fecb (patch)
treec8f33278ac1960cce126d20227aa74beaee42340 /lib
parentddc53c8b92d8feb3e2103b02f41617a2abf20574 (diff)
downloadperl-41f1c18b7f5c96c7e2342be26f828b975f27fecb.tar.gz
bleadperl on cygwin weirdness...
Message-ID: <13779422183.20011209203128@familiehaase.de> (plus libperl*.dll version portability tweaks) p4raw-id: //depot/perl@13557
Diffstat (limited to 'lib')
-rw-r--r--lib/ExtUtils/Embed.t8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/ExtUtils/Embed.t b/lib/ExtUtils/Embed.t
index b56d233880..b6ddd0fc3e 100644
--- a/lib/ExtUtils/Embed.t
+++ b/lib/ExtUtils/Embed.t
@@ -78,7 +78,10 @@ if ($^O eq 'VMS') {
s!-bE:(\S+)!-bE:$perl_exp!;
}
} elsif ($^O eq 'cygwin') { # Cygwin needs the libperl copied
- system("cp ../$Config{'libperl'} ../libperl.dll"); # for test 1
+ my $v_e_r_s = $Config{version};
+ $v_e_r_s =~ tr/./_/;
+ system("cp ../libperl$v_e_r_s.dll ./"); # for test 1
+ system("cp ../$Config{'libperl'} ../libperl.a"); # for test 1
}
}
my $status;
@@ -99,7 +102,8 @@ $status = system($embed_test);
print (($status? 'not ':'')."ok 9 # $status\n");
unlink($exe,"embed_test.c",$obj);
unlink("embed_test.map","embed_test.lis") if $^O eq 'VMS';
-unlink("../libperl.dll") if $^O eq 'cygwin';
+unlink(glob("./libperl*.dll")) if $^O eq 'cygwin';
+unlink("../libperl.a") if $^O eq 'cygwin';
# gcc -g -I.. -L../ -o perl_test perl_test.c -lperl `../perl -I../lib -MExtUtils::Embed -I../ -e ccopts -e ldopts`