include $(TOPDIR)/rules.mk
PKG_NAME:=7z
-PKG_VERSION:=23.01
+PKG_VERSION:=24.05
PKG_SOURCE:=$(PKG_NAME)$(subst .,,$(PKG_VERSION))-src.tar.xz
PKG_SOURCE_URL:=https://7-zip.org/a/
-PKG_HASH:=356071007360e5a1824d9904993e8b2480b51b570e8c9faf7c0f58ebe4bf9f74
+PKG_HASH:=63f341cf80b8d287c6e945519b3da0fa75553c85572a471b7fa6e68f9a90b790
PKG_CPE_ID:=cpe:/a:7-zip:7-zip
endif\r
\r
# for object file\r
-@@ -32,7 +32,7 @@ endif
- # -save-temps\r
- CFLAGS_BASE_LIST = -c\r
+@@ -50,7 +50,7 @@ endif
+ endif\r
+ \r
# CFLAGS_BASE_LIST = -S\r
-CFLAGS_BASE = -O2 $(CFLAGS_BASE_LIST) $(CFLAGS_WARN_WALL) $(CFLAGS_WARN) \\r
+CFLAGS_BASE = $(CFLAGS_BASE_LIST) $(CFLAGS_WARN_WALL) $(CFLAGS_WARN) -D_GNU_SOURCE \\r
- -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \\r
+ $(CFLAGS_DEBUG) -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \\r
-fPIC\r
\r
---- a/C/CpuArch.c
-+++ b/C/CpuArch.c
-@@ -766,8 +766,6 @@ BoolInt CPU_IsSupported_AES (void) { ret
- \r
- #ifdef USE_HWCAP\r
- \r
--#include <asm/hwcap.h>\r
--\r
- #define MY_HWCAP_CHECK_FUNC_2(name1, name2) \\r
- BoolInt CPU_IsSupported_ ## name1() { return (getauxval(AT_HWCAP) & (HWCAP_ ## name2)) ? 1 : 0; }\r
- \r
--- a/C/Threads.c
+++ b/C/Threads.c
@@ -265,7 +265,7 @@ WRes Thread_Create_With_CpuSet(CThread *
- pthread_attr_setaffinity_np(&attr, sizeof(*cpuSet), cpuSet);\r
+ //pthread_attr_setaffinity_np(&attr, sizeof(*cpuSet), cpuSet);\r
// if (ret2) ret = ret2;\r
- #endif\r
+ #endif\r
}\r
@@ -275,14 +275,12 @@ WRes Thread_Create_With_CpuSet(CThread *
if (!ret)\r
// ret2 =\r
--- a/C/Threads.h
+++ b/C/Threads.h
-@@ -20,6 +20,7 @@
+@@ -29,6 +29,7 @@ Z7_DIAGNOSTIC_IGNORE_END_RESERVED_MACRO_
#endif\r
\r
#include <pthread.h>\r
\r
#endif\r
\r
---- a/CPP/Windows/SystemInfo.cpp
-+++ b/CPP/Windows/SystemInfo.cpp
-@@ -36,9 +36,6 @@
- #endif\r
- */\r
- \r
--#ifdef MY_CPU_ARM_OR_ARM64\r
--#include <asm/hwcap.h>\r
--#endif\r
- #endif\r
- \r
- #ifdef __linux__\r