From 4f6c4c1896f1fea63053468bfc599d3cf7da93f5 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 10 Apr 2013 15:38:24 +0100 Subject: [PATCH] Support for WinEC7. --- util/pl/VC-32.pl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/util/pl/VC-32.pl b/util/pl/VC-32.pl index aef3de23ea..3465fe038c 100644 --- a/util/pl/VC-32.pl +++ b/util/pl/VC-32.pl @@ -127,8 +127,14 @@ elsif ($FLAVOR =~ /CE/) $base_cflags.=" $wcecdefs"; $base_cflags.=' -I$(WCECOMPAT)/include' if (defined($ENV{'WCECOMPAT'})); $base_cflags.=' -I$(PORTSDK_LIBPATH)/../../include' if (defined($ENV{'PORTSDK_LIBPATH'})); - $opt_cflags=' /MC /O1i'; # optimize for space, but with intrinsics... - $dbg_clfags=' /MC /Od -DDEBUG -D_DEBUG'; + if ($ENV{PLATFORM} =~ /wce7/i) { + $opt_cflags=' /MT /O1i'; # optimize for space, but with intrinsics... + $dbg_cflags=' /MT /Od -DDEBUG -D_DEBUG'; + } else { + $opt_cflags=' /MC /O1i'; # optimize for space, but with intrinsics... + $dbg_cflags=' /MC /Od -DDEBUG -D_DEBUG'; + } + $lflags="/nologo /opt:ref $wcelflag"; } else # Win32 -- 2.25.1