]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
make.sh: Build with _FORTIFY_SOURCE=3
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 5 Feb 2024 16:46:36 +0000 (16:46 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 5 Feb 2024 16:51:27 +0000 (16:51 +0000)
This will require that we re-ship everything.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index 6178b46cb7b10cc8375c003442e70bd97c120dcf..600db13347c482b02c0f9e4a384205ec0d89eeac 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -182,7 +182,7 @@ configure_build() {
        TOOLS_DIR="/tools_${BUILD_ARCH}"
 
        # Enables hardening
-       HARDENING_CFLAGS="-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection"
+       HARDENING_CFLAGS="-Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection"
 
        CFLAGS="-O2 -pipe -Wall -fexceptions -fPIC ${CFLAGS_ARCH}"
        CXXFLAGS="${CFLAGS}"