summaryrefslogtreecommitdiff
path: root/config/makepkg/x86_64.conf
diff options
context:
space:
mode:
authorkpcyrd <kpcyrd@archlinux.org>2023-09-05 16:37:28 +0200
committerLevente Polyak <anthraxx@archlinux.org>2024-02-14 02:08:01 +0100
commitc79a99314822fe4238b66f92c81b288208073a24 (patch)
treee05615146247e8e4d6238d958c9922dc93d3c196 /config/makepkg/x86_64.conf
parent6d0ac6b9a815cfce001db018a05c7ffd0ed14a98 (diff)
downloaddevtools-c79a99314822fe4238b66f92c81b288208073a24.tar.xz
feat(makepkg.conf): Increase _FORTIFY_SOURCE level to 3
RFC: https://rfc.archlinux.page/0017-increase-fortification-level/
Diffstat (limited to 'config/makepkg/x86_64.conf')
-rw-r--r--config/makepkg/x86_64.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/makepkg/x86_64.conf b/config/makepkg/x86_64.conf
index e258e07..0591c48 100644
--- a/config/makepkg/x86_64.conf
+++ b/config/makepkg/x86_64.conf
@@ -41,7 +41,7 @@ CHOST="x86_64-pc-linux-gnu"
#-- Compiler and Linker Flags
#CPPFLAGS=""
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
- -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
+ -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \
-fstack-clash-protection -fcf-protection"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \