summaryrefslogtreecommitdiff
path: root/makedef.pl
diff options
context:
space:
mode:
authorVadim Konovalov <vkonovalov@lucent.com>2005-11-16 23:57:13 +0300
committerH.Merijn Brand <h.m.brand@xs4all.nl>2005-11-16 19:26:13 +0000
commit1829b0dc8541492d5482bacbb045b1b817fead03 (patch)
treebaec8ab6f3b5783261b8d32c4d9210cd874a8ea5 /makedef.pl
parentc315bfe889135a2987c1252735b745ecccd942d4 (diff)
downloadperl-1829b0dc8541492d5482bacbb045b1b817fead03.tar.gz
for wince
From: "Konovalov, Vadim" <vkonovalov@spb.lucent.com> Message-ID: <7DD1BE2C50259746ABB8683672D2089E12DC9F@itotest-1.spb.lucent.com> p4raw-id: //depot/perl@26140
Diffstat (limited to 'makedef.pl')
-rw-r--r--makedef.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/makedef.pl b/makedef.pl
index e8fa48a1dc..9d3c632706 100644
--- a/makedef.pl
+++ b/makedef.pl
@@ -36,7 +36,7 @@ my %PLATFORM;
defined $PLATFORM || die "PLATFORM undefined, must be one of: @PLATFORM\n";
exists $PLATFORM{$PLATFORM} || die "PLATFORM must be one of: @PLATFORM\n";
-if ($PLATFORM eq 'win32' or $PLATFORM eq "aix") {
+if ($PLATFORM eq 'win32' or $PLATFORM eq 'wince' or $PLATFORM eq "aix") {
# Add the compile-time options that miniperl was built with to %define.
# On Win32 these are not the same options as perl itself will be built
# with since miniperl is built with a canned config (one of the win32/
@@ -45,7 +45,8 @@ if ($PLATFORM eq 'win32' or $PLATFORM eq "aix") {
# source files and header files and don't include any BUILDOPT's that
# the user might have chosen to disable because the canned configs are
# minimal configs that don't include any of those options.
- my $config = `$^X -Ilib -V`;
+ my $opts = ($PLATFORM eq 'wince' ? '-MCross' : '');
+ my $config = `$^X $opts -Ilib -V`;
my($options) = $config =~ /^ Compile-time options: (.*?)\n^ \S/ms;
$options =~ s/\s+/ /g;
print STDERR "Options: ($options)\n";