mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-12 09:54:53 +00:00
a9f58dddb7
Update to a more recent stable release. Most notably, this version includes some fixes for building on an OS like Alpine. This allows for the removal of hacks that fixed building on Alpine, but broke building on ARM archs. Manually adjust: - 7-zip-flags.patch - 7-zip-musl.patch Link: https://7-zip.org/history.txt Signed-off-by: Michael Pratt <mcpratt@pm.me> Link: https://github.com/openwrt/openwrt/pull/15991 Signed-off-by: Robert Marko <robimarko@gmail.com>
21 lines
556 B
Diff
21 lines
556 B
Diff
--- a/CPP/7zip/7zip_gcc.mak
|
|
+++ b/CPP/7zip/7zip_gcc.mak
|
|
@@ -24,7 +24,7 @@ PROGPATH_STATIC = $(O)/$(PROG)s
|
|
|
|
|
|
ifneq ($(CC), xlc)
|
|
-CFLAGS_WARN_WALL = -Werror -Wall -Wextra
|
|
+CFLAGS_WARN_WALL = -Wall -Wextra
|
|
endif
|
|
|
|
# for object file
|
|
@@ -50,7 +50,7 @@ endif
|
|
endif
|
|
|
|
# CFLAGS_BASE_LIST = -S
|
|
-CFLAGS_BASE = -O2 $(CFLAGS_BASE_LIST) $(CFLAGS_WARN_WALL) $(CFLAGS_WARN) \
|
|
+CFLAGS_BASE = $(CFLAGS_BASE_LIST) $(CFLAGS_WARN_WALL) $(CFLAGS_WARN) -D_GNU_SOURCE \
|
|
$(CFLAGS_DEBUG) -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
|
|
-fPIC
|
|
|