]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Configurations: PowerPC is big endian
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Sun, 5 Jul 2020 18:52:39 +0000 (20:52 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Mon, 14 Dec 2020 08:58:54 +0000 (09:58 +0100)
Define B_ENDIAN on PowerPC because it is a big endian architecture. With
this change the BN* related tests pass.

Fixes: #12199
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/12371)

(cherry picked from commit 52c6c12c1cad6f1046b34f4139d1aa3e967a5530)

Configurations/10-main.conf

index cea4feb9a01baa4ec1150ca5ab642f249d13a1c7..8dc3e858dfa8f23ce8b3cff745a2d7e60d20e189 100644 (file)
@@ -663,6 +663,7 @@ my %targets = (
     "linux-ppc" => {
         inherit_from     => [ "linux-generic32", asm("ppc32_asm") ],
         perlasm_scheme   => "linux32",
+        lib_cppflags     => add("-DB_ENDIAN"),
     },
     "linux-ppc64" => {
         inherit_from     => [ "linux-generic64", asm("ppc64_asm") ],