Don't use CPP in Configurations/unix-Makefile.tmpl
authorRichard Levitte <levitte@openssl.org>
Wed, 4 Apr 2018 13:28:19 +0000 (15:28 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 4 Apr 2018 14:45:51 +0000 (16:45 +0200)
commit6ddcf90fae372da897bdf84d0949618bbdb4abab
treebbc30f444ac37c9f4846ed99bbe41439f5885dc6
parentc255668c61e6b4800aa9c6e293a12942eccf511b
Don't use CPP in Configurations/unix-Makefile.tmpl

We started using $(CPP) instead of $(CC) -E, with the assumption that
CPP would be predefined.  This is, however, not always true, and
rather depends on the 'make' implementation.  Furthermore, on
platforms where CPP=cpp or something else other than '$(CC) -E',
there's a risk that it won't understand machine specific flags that we
pass to it.  So it turns out that trying to use $(CPP) was a mistake,
and we therefore revert that use back to using $(CC) -E directly.

Fixes #5867

Note: this affects config targets that use Alpha, ARM, IA64, MIPS,
s390x or SPARC assembler modules.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5871)
Configurations/unix-Makefile.tmpl