To generate makefile with correct parameters for WinCE.
authoraSoujyuTanaka <soujyu.tanaka@access-company.com>
Sat, 11 Apr 2020 19:00:17 +0000 (04:00 +0900)
committerRichard Levitte <levitte@openssl.org>
Wed, 15 Jul 2020 21:03:22 +0000 (23:03 +0200)
Reviewed-by: Mark J. Cox <mark@awe.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11526)

Configurations/10-main.conf
Configurations/windows-makefile.tmpl

index 5baab6f306f133d917d279ebcf7dae6fe4cd9ebe..895317dbb66cefe11e0b6f08416464f1b74723ca 100644 (file)
@@ -1417,9 +1417,9 @@ my %targets = (
             }
             push @ex_libs, '$(PORTSDK_LIBPATH)/portlib.lib'
                 if (defined(env('PORTSDK_LIBPATH')));
-            push @ex_libs, ' /nodefaultlib coredll.lib corelibc.lib'
-                if (env('TARGETCPU') eq "X86");
-            return @ex_libs;
+            push @ex_libs, '/nodefaultlib coredll.lib corelibc.lib'
+                if (env('TARGETCPU') =~ /^X86|^ARMV4[IT]/);
+            return join(" ", @ex_libs);
         }),
     },
 
index 107d0dc183362e1a73f0ff013969fd38f0fb8b99..c2507a6508fd527fcb2c7a74f8349d959b13f5f0 100644 (file)
@@ -264,8 +264,8 @@ CNF_CPPFLAGS={- our $cppfags2 =
                     join(' ', $target{cppflags} || (),
                               (map { '-D'.quotify1($_) } @{$target{defines}},
                                                          @{$config{defines}}),
-                              (map { '-I'.quotify1($_) } @{$target{includes}},
-                                                         @{$config{includes}}),
+                              (map { '-I'.'"'.$_.'"' } @{$target{includes}},
+                                                       @{$config{includes}}),
                               @{$config{cppflags}}) -}
 CNF_CFLAGS={- join(' ', $target{cflags} || (),
                         @{$config{cflags}}) -}