Skip to content
Snippets Groups Projects
Verified Commit 71d2dd10 authored by Frederik “Freso” S. Olesen's avatar Frederik “Freso” S. Olesen
Browse files

RFC 17: Increase _FORTIFY_SOURCE level to 3

> Adjust packaging CFLAGS from -D_FORTIFY_SOURCE=2 to
> -D_FORTIFY_SOURCE=3 for better fortification coverage

See https://rfc.archlinux.page/0017-increase-fortification-level/
parent 3c4480fe
No related branches found
No related tags found
1 merge request!6Implement Arch Linux RFCs 17, 23, and 26
......@@ -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,--sort-common,--as-needed,-z,relro,-z,now"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment