]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - make.sh
make.sh: Enable cheap out-of-bounds checks in C++ standard library
[ipfire-2.x.git] / 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}"