From: Michael Tremer Date: Sun, 28 Jan 2018 15:47:21 +0000 (+0000) Subject: CFLAGS: Enable cheap out-of-bounds check in C++ standard library X-Git-Tag: 0.9.28~1289 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=400b228b0290d09edbe45f52d1369297dc3f44a7;p=people%2Fms%2Fpakfire.git CFLAGS: Enable cheap out-of-bounds check in C++ standard library Signed-off-by: Michael Tremer --- diff --git a/macros/cflags.macro b/macros/cflags.macro index b56c8b969..2cc4ab888 100644 --- a/macros/cflags.macro +++ b/macros/cflags.macro @@ -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