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:
parent
cafd0ed412
commit
f2127f6e3b
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ XBPS_INSTALL_ARGS="--repository=http://repo.voidlinux.eu/current"
|
||||||
# [OPTIONAL]
|
# [OPTIONAL]
|
||||||
# Compilation flags for C and C++.
|
# Compilation flags for C and C++.
|
||||||
#
|
#
|
||||||
XBPS_CFLAGS="-O2 -pipe"
|
XBPS_CFLAGS="-O2 -pipe -mtune=generic -fstack-protector-strong"
|
||||||
XBPS_CXXFLAGS="${XBPS_CFLAGS}"
|
XBPS_CXXFLAGS="${XBPS_CFLAGS}"
|
||||||
|
|
||||||
# [OPTIONAL]
|
# [OPTIONAL]
|
||||||
|
@ -90,7 +90,7 @@ XBPS_SUCMD="sudo /bin/sh -c"
|
||||||
#XBPS_USE_GIT_REVS=yes
|
#XBPS_USE_GIT_REVS=yes
|
||||||
|
|
||||||
# [OPTIONAL]
|
# [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
|
# 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
|
# packages even on computers with a fast CPU; as well as needs lots of
|
||||||
# RAM to build properly some packages.
|
# RAM to build properly some packages.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue