aboutsummaryrefslogtreecommitdiff
path: root/etc/defaults.conf
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2015-03-12 10:26:51 +0000
committerJuan RP <xtraeme@gmail.com>2015-03-12 10:28:27 +0000
commit4c49a35f43badf202a400d727ed9d3db14b59ac8 (patch)
treeffef1b4abba904fb4fefe2c51951520b0e665003 /etc/defaults.conf
parentc645a1c0976b320305cdf2bbbff0b8c6b1936973 (diff)
downloadvoid-packages-4c49a35f43badf202a400d727ed9d3db14b59ac8.tar
void-packages-4c49a35f43badf202a400d727ed9d3db14b59ac8.tar.gz
void-packages-4c49a35f43badf202a400d727ed9d3db14b59ac8.tar.bz2
void-packages-4c49a35f43badf202a400d727ed9d3db14b59ac8.tar.lz
void-packages-4c49a35f43badf202a400d727ed9d3db14b59ac8.tar.xz
void-packages-4c49a35f43badf202a400d727ed9d3db14b59ac8.tar.zst
void-packages-4c49a35f43badf202a400d727ed9d3db14b59ac8.zip
etc/defaults.conf: move _FORTIFY_SOURCE to CFLAGS.
Lots of pkgs seem to fail when _FORTIFY_SOURCE is defined in CPPFLAGS due to a missing optimization level, and also some of them simply ignore CPPFLAGS, therefore move it to CFLAGS to fix this once and for all.
Diffstat (limited to 'etc/defaults.conf')
-rw-r--r--etc/defaults.conf3
1 files changed, 1 insertions, 2 deletions
diff --git a/etc/defaults.conf b/etc/defaults.conf
index d6f2f477a63..016d319461e 100644
--- a/etc/defaults.conf
+++ b/etc/defaults.conf
@@ -24,9 +24,8 @@ XBPS_INSTALL_ARGS="--repository=http://repo.voidlinux.eu/current"
# Native Compilation/Preprocessor flags for C and C++. Additional settings
# for the target architecture are also declared in common/build-profiles/<arch>.sh.
#
-XBPS_CFLAGS="-O2 -pipe -fstack-protector-strong"
+XBPS_CFLAGS="-O2 -pipe -fstack-protector-strong -D_FORTIFY_SOURCE=2"
XBPS_CXXFLAGS="${XBPS_CFLAGS}"
-XBPS_CPPFLAGS="-D_FORTIFY_SOURCE=2"
# [OPTIONAL]
# Linker flags passed to the compiler. By default we use --as-needed to