7-zip-flags.patch 852 B

123456789101112131415161718192021222324252627
  1. --- a/CPP/7zip/7zip_gcc.mak
  2. +++ b/CPP/7zip/7zip_gcc.mak
  3. @@ -18,13 +18,13 @@ PROGPATH_STATIC = $(O)/$(PROG)s
  4. ifneq ($(CC), xlc)
  5. -CFLAGS_WARN_WALL = -Wall -Werror -Wextra
  6. +CFLAGS_WARN_WALL = -Wall -Wextra
  7. endif
  8. # for object file
  9. CFLAGS_BASE_LIST = -c
  10. # CFLAGS_BASE_LIST = -S
  11. -CFLAGS_BASE = -O2 $(CFLAGS_BASE_LIST) $(CFLAGS_WARN_WALL) $(CFLAGS_WARN) \
  12. +CFLAGS_BASE = $(CFLAGS_BASE_LIST) $(CFLAGS_WARN_WALL) $(CFLAGS_WARN) -D_GNU_SOURCE \
  13. -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
  14. -fPIC
  15. @@ -192,7 +192,7 @@ all: $(O) $(PROGPATH) $(STATIC_TARGET)
  16. $(O):
  17. $(MY_MKDIR) $(O)
  18. -LFLAGS_ALL = -s $(MY_ARCH_2) $(LDFLAGS) $(LD_arch) $(OBJS) $(MY_LIBS) $(LIB2)
  19. +LFLAGS_ALL = $(MY_ARCH_2) $(LDFLAGS) $(LD_arch) $(OBJS) $(MY_LIBS) $(LIB2)
  20. $(PROGPATH): $(OBJS)
  21. $(CXX) -o $(PROGPATH) $(LFLAGS_ALL)