From cecad543cb59d0e052cea437cc064bb0924cdbd2 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 5 Feb 2024 16:46:36 +0000 Subject: [PATCH] make.sh: Build with _FORTIFY_SOURCE=3 This will require that we re-ship everything. Signed-off-by: Michael Tremer --- make.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make.sh b/make.sh index b3be0865b..8b4224646 100755 --- 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}" -- 2.39.2