diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-01-07 18:23:16 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-01-07 18:23:16 +0000 |
commit | d4bc760b88f7fcb002343efbc900f2e854eda8d8 (patch) | |
tree | c4832b84f0959a8c3e08363d90592f465f6dc0a5 /utils | |
parent | 59b7e5e67a9c8ede4523ec432fc38f897dbd1da7 (diff) | |
download | perl-d4bc760b88f7fcb002343efbc900f2e854eda8d8.tar.gz |
cygwin update (from Eric Fifer <EFifer@sanwaint.com>)
p4raw-id: //depot/perl@4769
Diffstat (limited to 'utils')
-rw-r--r-- | utils/perlcc.PL | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/perlcc.PL b/utils/perlcc.PL index 24eb0b30c3..6c1fa45879 100644 --- a/utils/perlcc.PL +++ b/utils/perlcc.PL @@ -368,6 +368,8 @@ sub _ccharness my $lperl = $^O eq 'os2' ? '-llibperl' : $^O eq 'MSWin32' ? "$Config{archlibexp}\\CORE\\perl.lib" : '-lperl'; + ($lperl = $Config{libperl}) =~ s/lib(.*)\Q$Config{_a}\E/-l$1/ + if($^O eq 'cygwin'); $optimize = $Config{'optimize'} =~ /-O\d/ ? '' : $Config{'optimize'}; @@ -377,10 +379,10 @@ sub _ccharness my $libs = _getSharedObjects($sourceprog); @$libs = grep { !(/DynaLoader\.a$/ && ($dynaloader = $_)) } @$libs - if($^O =~ /cygwin/i); + if($^O eq 'cygwin'); my $ccflags = $Config{ccflags}; - $ccflags .= ' -DUSEIMPORTLIB' if $Config{osname} =~ /cygwin/i; + $ccflags .= ' -DUSEIMPORTLIB' if $^O eq 'cygwin'; my $cccmd = "$Config{cc} $ccflags $optimize $incdir " ."@args $dynaloader $linkargs @$libs"; |