projects/aports·blob master · refs

15 lines · 711 B

1-D_FORTIFY_SOURCE=2 is enable in gcc by default on alpine. See the
20004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch patch in
3main/gcc. Disabling it here silences a bunch of compiler warnings.
4
5--- a/Makefile.in
6+++ b/Makefile.in
7@@ -39,7 +39,7 @@ DEFS = @DEFS@ -DNMAP_PLATFORM=\"$(NMAP_P
8 # http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html
9 # Level 1 only makes changes that don't affect "conforming" programs,
10 # while level 2 enforces additional restrictions.
11-DEFS += -D_FORTIFY_SOURCE=2
12+# DEFS += -D_FORTIFY_SOURCE=2
13 # For mtrace debugging -- see MTRACE define in main.cc for instructions
14 # Should only be enabled during debugging and not in any real release.
15 # DEFS += -DMTRACE=1