From b2d4d0be01b197d139f06499b8efabc89dfdfe5b Mon Sep 17 00:00:00 2001 From: Martchus Date: Mon, 30 Oct 2023 20:21:15 +0100 Subject: [PATCH] Enable _FORTIFY_SOURCE=3 in mingw-w64 preset In accordance with the mingw-w64-environment package --- CMakePresets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakePresets.json b/CMakePresets.json index 1aee660..e752369 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -124,7 +124,7 @@ "environment": { "CROSS_TOOL_PREFIX": "x86_64-w64-mingw32-", "CROSS_INSTALL_PREFIX": "/usr/x86_64-w64-mingw32", - "CPPFLAGS": "-D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS", + "CPPFLAGS": "-D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS", "CFLAGS": "$env{CPPFLAGS} -O2 -pipe -fno-plt -fexceptions --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fcf-protection", "CXXFLAGS": "$env{CPPFLAGS} -O2 -pipe -fno-plt -fexceptions --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fcf-protection", "LDFLAGS": "-Wl,-O1,--sort-common,--as-needed -fstack-protector",