From: Michael Tremer Date: Sat, 10 Feb 2018 13:20:14 +0000 (+0000) Subject: make.sh: Enable cheap out-of-bounds checks in C++ standard library X-Git-Tag: v2.19-core120~136 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=54114eb0a5733aea3a610a974b105aad72f21dfa;p=ipfire-2.x.git make.sh: Enable cheap out-of-bounds checks in C++ standard library Signed-off-by: Michael Tremer --- diff --git a/make.sh b/make.sh index e77b3d4f7c..5767ae8f33 100755 --- a/make.sh +++ b/make.sh @@ -195,7 +195,7 @@ configure_build() { TOOLS_DIR="/tools_${BUILD_ARCH}" # Enables hardening - HARDENING_CFLAGS="-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong" + HARDENING_CFLAGS="-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong" CFLAGS="-O2 -pipe -Wall -fexceptions -fPIC ${CFLAGS_ARCH}" CXXFLAGS="${CFLAGS}"