aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJuan RP <xtraeme@voidlinux.eu>2015-11-17 16:13:12 +0000
committerJuan RP <xtraeme@voidlinux.eu>2015-11-17 16:13:12 +0000
commit784f75931d7809bbc7009584ac0a4c822cc675d9 (patch)
treed69dfe2ced564441bdc1b72e0f51df9ecca6eaac /etc
parent8257e5cdbaf59f6b17ccb6fd21f1199536f8a700 (diff)
downloadvoid-packages-784f75931d7809bbc7009584ac0a4c822cc675d9.tar
void-packages-784f75931d7809bbc7009584ac0a4c822cc675d9.tar.gz
void-packages-784f75931d7809bbc7009584ac0a4c822cc675d9.tar.bz2
void-packages-784f75931d7809bbc7009584ac0a4c822cc675d9.tar.lz
void-packages-784f75931d7809bbc7009584ac0a4c822cc675d9.tar.xz
void-packages-784f75931d7809bbc7009584ac0a4c822cc675d9.tar.zst
void-packages-784f75931d7809bbc7009584ac0a4c822cc675d9.zip
xbps-src: move compiler/linker defaults to env/hardening.sh.
The user can still set his/her defaults via etc/conf, and per package in the templates.
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults.conf8
1 files changed, 3 insertions, 5 deletions
diff --git a/etc/defaults.conf b/etc/defaults.conf
index d9d29d8a39a..500a16514f3 100644
--- a/etc/defaults.conf
+++ b/etc/defaults.conf
@@ -23,15 +23,13 @@ XBPS_INSTALL_ARGS="--repository=http://repo.voidlinux.eu/current --repository=ht
# 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 -D_FORTIFY_SOURCE=2"
+XBPS_CFLAGS="-O2 -pipe"
XBPS_CXXFLAGS="${XBPS_CFLAGS}"
# [OPTIONAL]
-# Linker flags passed to the compiler. By default we use --as-needed to
-# avoid linking extra libraries into binaries. See the following link
-# for info: http://www.gentoo.org/proj/en/qa/asneeded.xml
+# Linker flags passed to the compiler.
#
-XBPS_LDFLAGS="-Wl,--as-needed -Wl,-z,relro"
+#XBPS_LDFLAGS=""
# [REQUIRED]
# Command to execute to gain root privileges when using the `update-sys`