summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-14 07:43:37 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-14 07:43:37 +0000
commit5268c7a4ffaff09425867b98837ac473369d8333 (patch)
tree8e2613e055de730e71d9a37a47e8dd68d619a82e /utils
parent6d03d4630fe409d72e9cd605dd225735afaba73f (diff)
downloadperl-5268c7a4ffaff09425867b98837ac473369d8333.tar.gz
fixes for Borland compiler (from Vadim Konovalov
<vkonovalov@lucent.com>) p4raw-id: //depot/perl@5726
Diffstat (limited to 'utils')
-rw-r--r--utils/perlcc.PL8
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/perlcc.PL b/utils/perlcc.PL
index 971923b68e..f0636f62bd 100644
--- a/utils/perlcc.PL
+++ b/utils/perlcc.PL
@@ -390,10 +390,16 @@ sub _ccharness
@$libs = grep { !(/DynaLoader\.a$/ && ($dynaloader = $_)) } @$libs
if($^O eq 'cygwin');
+ my $args = "@args";
+ if ($^O eq 'MSWin32' && $Config{cc} =~ /^bcc/i) {
+ # BC++ cmd line syntax does not allow space between -[oexz...] and arg
+ $args =~ s/(^|\s+)-([oe])\s+/$1-$2/g;
+ }
+
my $ccflags = $Config{ccflags};
$ccflags .= ' -DUSEIMPORTLIB' if $^O eq 'cygwin';
my $cccmd = "$Config{cc} $ccflags $optimize $incdir "
- ."@args $dynaloader $linkargs @$libs";
+ ."$args $dynaloader $linkargs @$libs";
_print ("$cccmd\n", 36);
_run("$cccmd", 18 );