Only build the body of e_padlock when there are lower level routines
authorRichard Levitte <levitte@openssl.org>
Mon, 29 Aug 2016 14:58:31 +0000 (16:58 +0200)
committerRichard Levitte <richard@levitte.org>
Tue, 15 Nov 2016 14:15:52 +0000 (15:15 +0100)
commit5be6f71858a66060c7dcb46d0c015a55fc0b569d
tree68950581423f78889836e4192fecb58bc5da04a6
parent20b53c3efedd192c5a4050bfd44d317e5d802d2e
Only build the body of e_padlock when there are lower level routines

engines/e_padlock.c assumes that for all x86 and x86_64 platforms, the
lower level routines will be present.  However, that's not always
true, for example for solaris-x86-cc, and that leads to build errors.

The better solution is to have configure detect if the lower level
padlock routines are being built, and define the macro PADLOCK_ASM if
they are, and use that macro in our C code.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1510)
(cherry picked from commit 7b176a549ea374fc9b64c3fa7f0812239528b696)
Configure
engines/e_padlock.c