From: Xi Ruoyao Date: Tue, 12 Dec 2023 19:36:48 +0000 (+0800) Subject: Define L_ENDIAN for linux64-loongarch64 X-Git-Tag: openssl-3.1.5~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4d8fcf3db85aed59f416486263c27e566d277a1;p=thirdparty%2Fopenssl.git Define L_ENDIAN for linux64-loongarch64 In commit d7c0fc5b1a7b5cb2219f8d89a861f3879582fc16 we removed L_ENDIAN definition for guessed linux64-loongarch64 as it had caused an inconsistency between configurations with and without explicit specifying linux64-loongarch64. Now add it back to the proper location. Unlike MIPS or RISC-V, LoongArch is always little-endian [1]. By the way, change "LOONGARCH" to "LoongArch" in a comment as LOONGARCH should only appear in the identifiers of macros, constants, etc. [1]:https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#endian Reviewed-by: Shane Lontis Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/23064) (cherry picked from commit e1002c84725a64b6a097f3155dc6851b57f7ba8e) --- diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf index ef49354f643..c6c1814d3a3 100644 --- a/Configurations/10-main.conf +++ b/Configurations/10-main.conf @@ -834,6 +834,7 @@ my %targets = ( inherit_from => [ "linux-generic64"], perlasm_scheme => "linux64", asm_arch => 'loongarch64', + lib_cppflags => add("-DL_ENDIAN"), }, #### IA-32 targets...