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:56:03 +0000 (09:56 +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)

Configurations/10-main.conf

index d7580bf3e10e3a4940b316fe018d67538d6dcde9..5f672fbb77f3ace8a5adc8d9d632c3fcc003a462 100644 (file)
@@ -706,6 +706,7 @@ my %targets = (
         inherit_from     => [ "linux-generic32" ],
         asm_arch         => 'ppc32',
         perlasm_scheme   => "linux32",
+        lib_cppflags     => add("-DB_ENDIAN"),
     },
     "linux-ppc64" => {
         inherit_from     => [ "linux-generic64" ],