]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
make.sh: Enable cheap out-of-bounds checks in C++ standard library
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 Feb 2018 13:20:14 +0000 (13:20 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 11 Feb 2018 20:56:12 +0000 (20:56 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index e77b3d4f7cdd16dca37c971493509b3d53965d84..5767ae8f335927c344781ab19293039c09fb5e28 100755 (executable)
--- 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}"