etc/defaults.conf: use -mtune=generic and -fstack-protector-strong by default.

- -mtune=generic provides optimizations for generic CPUs.
- -fstack-protector-strong guards against buffer overflows and stack smashing attacks.
This commit is contained in:
Juan RP 2014-05-16 08:20:08 +02:00
parent cafd0ed412
commit f2127f6e3b

View file

@ -49,7 +49,7 @@ XBPS_INSTALL_ARGS="--repository=http://repo.voidlinux.eu/current"
# [OPTIONAL]
# Compilation flags for C and C++.
#
XBPS_CFLAGS="-O2 -pipe"
XBPS_CFLAGS="-O2 -pipe -mtune=generic -fstack-protector-strong"
XBPS_CXXFLAGS="${XBPS_CFLAGS}"
# [OPTIONAL]
@ -90,7 +90,7 @@ XBPS_SUCMD="sudo /bin/sh -c"
#XBPS_USE_GIT_REVS=yes
# [OPTIONAL]
# Disable building -dbg subpackages with debugging symbols. Please note
# Enable building -dbg subpackages with debugging symbols. Please note
# that building with debugging symbols make take a long while in some
# packages even on computers with a fast CPU; as well as needs lots of
# RAM to build properly some packages.