Support for WinEC7. OpenSSL-fips-2_0_3
authorDr. Stephen Henson <steve@openssl.org>
Wed, 10 Apr 2013 14:38:24 +0000 (15:38 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 10 Apr 2013 14:38:24 +0000 (15:38 +0100)
util/pl/VC-32.pl

index aef3de23ea1bcbd2ac03f051efceaabd1be8a225..3465fe038cdcc820c388e082abf2e6696dc5a44c 100644 (file)
@@ -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