]> git.ipfire.org Git - pakfire.git/commitdiff
CFLAGS: Enable cheap out-of-bounds check in C++ standard library
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 28 Jan 2018 15:47:21 +0000 (15:47 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 28 Jan 2018 15:47:21 +0000 (15:47 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
macros/cflags.macro

index b56c8b969d2354e540814efaf0013edae6f20d48..2cc4ab8884120ce5f6e0c2ec3a388b37561647c3 100644 (file)
@@ -1,6 +1,6 @@
 
 # Export CFLAGS + CXXFLAGS
-GLOBAL_CFLAGS   = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Werror=format-security
+GLOBAL_CFLAGS   = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -Werror=format-security
 GLOBAL_CFLAGS  += -fexceptions -fPIC -fstack-protector-strong -grecord-gcc-switches
 
 CFLAGS_i686     = -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fstack-clash-protection