[arch-dev-public] RFC: Buildflag updates

Allan McRae allan at archlinux.org
Thu Mar 4 11:37:41 UTC 2021


Hi,

Now we have had some controversy...  lets look at some easier RFCs!


The first is about additions to build flags. Specifically, our
makepkg.conf would look like:

#CPPFLAGS=""
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
        -Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS
-Werror=format-security \
        -fstack-clash-protection -fcf-protection"
CXXFLAGS="$CFLAGS"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
DEBUG_CFLAGS="-g -grecord-gcc-switches -fvar-tracking-assignments"


For full details and to discuss the changes, please look at:
https://gitlab.archlinux.org/archlinux/rfcs/-/merge_requests/3

Allan


More information about the arch-dev-public mailing list