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:
parent
4f6e3a51b1
commit
b85357e6f3
@ -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 \
|
||||
|
||||
10
archivers/7-zip/files/patch-C_CpuArch.h
Normal file
10
archivers/7-zip/files/patch-C_CpuArch.h
Normal 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__) \
|
||||
Loading…
x
Reference in New Issue
Block a user