archivers/7-zip: fix build on big-endian

Checking for _LITTLE_ENDIAN causes:
../../Archive/../Compress/../../../C/CpuArch.h:280:4: error: Stop_Compiling_Bad_Endian
  280 |   #error Stop_Compiling_Bad_Endian
      |    ^

This is because sys/_endian.h defines _LITTLE_ENDIAN.
This commit is contained in:
Piotr Kubaj 2024-12-18 17:08:37 +01:00
parent 4f6e3a51b1
commit b85357e6f3
2 changed files with 11 additions and 0 deletions

View File

@ -30,6 +30,7 @@ CFLAGS_aarch64?= -march=armv8-a+crc+crypto
NO_WRKSUBDIR= yes
BUILD_WRKSRC= ${WRKSRC}/CPP/7zip/Bundles/Alone2
DOS2UNIX_FILES= C/CpuArch.c \
C/CpuArch.h \
C/7zCrc.c \
C/Aes.c \
C/AesOpt.c \

View File

@ -0,0 +1,10 @@
--- C/CpuArch.h.orig 2024-12-18 16:06:28 UTC
+++ C/CpuArch.h
@@ -247,7 +247,6 @@ MY_CPU_64BIT means that processor can work with 64-bit
|| defined(MY_CPU_ARM_LE) \
|| defined(MY_CPU_ARM64_LE) \
|| defined(MY_CPU_IA64_LE) \
- || defined(_LITTLE_ENDIAN) \
|| defined(__LITTLE_ENDIAN__) \
|| defined(__ARMEL__) \
|| defined(__THUMBEL__) \