include $(TOPDIR)/rules.mk
PKG_NAME:=7z
-PKG_VERSION:=22.01
-PKG_SOURCE_VERSION:=2201
+PKG_VERSION:=23.01
+PKG_SOURCE_VERSION:=2301
PKG_SOURCE:=$(PKG_NAME)$(PKG_SOURCE_VERSION)-src.tar.xz
PKG_SOURCE_URL:=https://7-zip.org/a/
-PKG_HASH:=393098730c70042392af808917e765945dc2437dee7aae3cfcc4966eb920fbc5
+PKG_HASH:=356071007360e5a1824d9904993e8b2480b51b570e8c9faf7c0f58ebe4bf9f74
# This builds the 7zr variant which supports only 7z, so no non-LGPL code should be included
PKG_LICENSE:=LGPL-2.1-or-later
--- a/CPP/7zip/7zip_gcc.mak
+++ b/CPP/7zip/7zip_gcc.mak
-@@ -18,13 +18,13 @@ PROGPATH_STATIC = $(O)/$(PROG)s
+@@ -24,7 +24,7 @@ PROGPATH_STATIC = $(O)/$(PROG)s
\r
\r
ifneq ($(CC), xlc)\r
--CFLAGS_WARN_WALL = -Wall -Werror -Wextra\r
+-CFLAGS_WARN_WALL = -Werror -Wall -Wextra\r
+CFLAGS_WARN_WALL = -Wall -Wextra\r
endif\r
\r
# for object file\r
+@@ -32,7 +32,7 @@ endif
+ # -save-temps\r
CFLAGS_BASE_LIST = -c\r
# CFLAGS_BASE_LIST = -S\r
-CFLAGS_BASE = -O2 $(CFLAGS_BASE_LIST) $(CFLAGS_WARN_WALL) $(CFLAGS_WARN) \\r
-DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \\r
-fPIC\r
\r
-@@ -192,7 +192,7 @@ all: $(O) $(PROGPATH) $(STATIC_TARGET)
- $(O):\r
- $(MY_MKDIR) $(O)\r
- \r
--LFLAGS_ALL = -s $(MY_ARCH_2) $(LDFLAGS) $(LD_arch) $(OBJS) $(MY_LIBS) $(LIB2)\r
-+LFLAGS_ALL = $(MY_ARCH_2) $(LDFLAGS) $(LD_arch) $(OBJS) $(MY_LIBS) $(LIB2)\r
- $(PROGPATH): $(OBJS)\r
- $(CXX) -o $(PROGPATH) $(LFLAGS_ALL)\r
- \r
--- a/C/CpuArch.c
+++ b/C/CpuArch.c
-@@ -421,8 +421,6 @@ BoolInt CPU_IsSupported_AES (void) { ret
+@@ -766,8 +766,6 @@ BoolInt CPU_IsSupported_AES (void) { ret
\r
#ifdef USE_HWCAP\r
\r
\r
--- a/C/Threads.c
+++ b/C/Threads.c
-@@ -257,7 +257,7 @@ WRes Thread_Create_With_CpuSet(CThread *
+@@ -265,7 +265,7 @@ WRes Thread_Create_With_CpuSet(CThread *
*/\r
\r
// ret2 =\r
// if (ret2) ret = ret2;\r
#endif\r
}\r
-@@ -267,14 +267,12 @@ WRes Thread_Create_With_CpuSet(CThread *
+@@ -275,14 +275,12 @@ WRes Thread_Create_With_CpuSet(CThread *
if (!ret)\r
{\r
p->_created = 1;\r
// ret2 =\r
--- a/C/Threads.h
+++ b/C/Threads.h
-@@ -19,6 +19,7 @@
+@@ -20,6 +20,7 @@
#endif\r
\r
#include <pthread.h>\r