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 | 4fabb5965cb13ba2085b455bf751c89110c43659 (patch) | |
tree | c4832b84f0959a8c3e08363d90592f465f6dc0a5 /utils | |
parent | 65346fe1a9b07a3de1b94fead7e905d3a8dad1d5 (diff) | |
download | perl-4fabb5965cb13ba2085b455bf751c89110c43659.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"; |