2023-02-16 14:25:12 +00:00
|
|
|
--- a/CPP/7zip/7zip_gcc.mak
|
|
|
|
+++ b/CPP/7zip/7zip_gcc.mak
|
2023-07-19 13:45:10 +00:00
|
|
|
@@ -24,7 +24,7 @@ PROGPATH_STATIC = $(O)/$(PROG)s
|
2023-02-16 14:25:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
ifneq ($(CC), xlc)
|
2023-07-19 13:45:10 +00:00
|
|
|
-CFLAGS_WARN_WALL = -Werror -Wall -Wextra
|
2023-02-16 14:25:12 +00:00
|
|
|
+CFLAGS_WARN_WALL = -Wall -Wextra
|
|
|
|
endif
|
|
|
|
|
|
|
|
# for object file
|
2024-07-11 10:33:55 +00:00
|
|
|
@@ -50,7 +50,7 @@ endif
|
|
|
|
endif
|
|
|
|
|
2023-02-16 14:25:12 +00:00
|
|
|
# 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 \
|
2024-07-11 10:33:55 +00:00
|
|
|
$(CFLAGS_DEBUG) -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
|
2023-02-16 14:25:12 +00:00
|
|
|
-fPIC
|
|
|
|
|