summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMattia Barbon <mbarbon@dsi.unive.it>2002-01-12 00:29:48 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2002-01-12 15:50:38 +0000
commit9d2bbe64880a61780d874de13a887a9237f604de (patch)
tree0f5701191e1fe1c21c4b701c065cfa15074069f3 /utils
parentc33fe6136db08002c23477124823657a548fce45 (diff)
downloadperl-9d2bbe64880a61780d874de13a887a9237f604de.tar.gz
B::C, perlcc.PL, B.xs, B.pm, t/TEST, C.xs
Message-ID: <3C3F756C.4581.2E2A938@localhost> p4raw-id: //depot/perl@14216
Diffstat (limited to 'utils')
-rw-r--r--utils/perlcc.PL10
1 files changed, 8 insertions, 2 deletions
diff --git a/utils/perlcc.PL b/utils/perlcc.PL
index 51f52eda5a..15a276a3cb 100644
--- a/utils/perlcc.PL
+++ b/utils/perlcc.PL
@@ -178,6 +178,7 @@ sub parse_argv {
'static', # Dirty hack to enable -shared/-static
'shared', # Create a shared library (--shared for compat.)
'log:s', # where to log compilation process information
+ 'Wb:s', # pass (comma-sepearated) options to backend
'testsuite', # try to be nice to testsuite
);
@@ -284,6 +285,11 @@ sub compile_cstyle {
my $lose = 0;
my ($cfh);
my $testsuite = '';
+ my $addoptions = opt(Wb);
+
+ if( $addoptions ) {
+ $addoptions .= ',' if $addoptions !~ m/,$/;
+ }
if (opt(testsuite)) {
my $bo = join '', @begin_output;
@@ -324,7 +330,7 @@ sub compile_cstyle {
# This has to do the write itself, so we can't keep a lock. Life
# sucks.
- my $command = "$BinPerl $taint -MO=$Backend,$testsuite$max_line_len$stash,-o$cfile $Input";
+ my $command = "$BinPerl $taint -MO=$Backend,$addoptions$testsuite$max_line_len$stash,-o$cfile $Input";
vprint 1, "Compiling...";
vprint 1, "Calling $command";
@@ -356,7 +362,7 @@ sub cc_harness_msvc {
$link .= " -libpath:".$_ for split /\s+/, opt(L);
my @mods = split /-?u /, $stash;
$link .= " ".ExtUtils::Embed::ldopts("-std", \@mods);
- $link .= " perl57.lib msvcrt.lib";
+ $link .= " perl57.lib kernel32.lib msvcrt.lib";
vprint 3, "running $Config{cc} $compile";
system("$Config{cc} $compile");
vprint 3, "running $Config{ld} $link";