Windows: fix echo for nmake
authorRichard Levitte <levitte@openssl.org>
Tue, 10 Jul 2018 12:12:33 +0000 (14:12 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 11 Jul 2018 12:49:02 +0000 (14:49 +0200)
commit9abce88b4b0055d6238a838aa00360152e185f02
tree29f4b8f78fa6f6adf0cf5dd0e87896a07b355fa8
parentc9ecb13191fe902c1e78e3bca7c36c293bba4bc6
Windows: fix echo for nmake

It seems that nmake first tries to run executables on its own, and
only pass commands to cmd if that fails.  That means it's possible to
have nmake run something like 'echo.exe' when the builtin 'echo'
command was expected, which might give us unexpected results.

To get around this, we create our own echoing script and call it
explicitly from the nmake makefile.

Fixes #6670

Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/6686)
Configurations/windows-makefile.tmpl
util/echo.pl [new file with mode: 0644]