about summary refs log tree commit diff stats
path: root/core/conf/pkgmk.conf
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2017-08-02 01:01:58 +0100
committerSilvino Silva <silvino@bk.ru>2017-08-02 01:01:58 +0100
commit65167272a3ba52dc4d032a1c60a9ff030408047d (patch)
tree0f40548a2b5c8eaf9bd99423e21b8baf63b83d65 /core/conf/pkgmk.conf
parent079066bc153f3a6fe84b5da0b8fa8e584641b46d (diff)
downloaddoc-65167272a3ba52dc4d032a1c60a9ff030408047d.tar.gz
first hardened test
Diffstat (limited to 'core/conf/pkgmk.conf')
-rw-r--r--core/conf/pkgmk.conf9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/conf/pkgmk.conf b/core/conf/pkgmk.conf
index 4ef372e..6949fa7 100644
--- a/core/conf/pkgmk.conf
+++ b/core/conf/pkgmk.conf
@@ -2,9 +2,10 @@
 # /etc/pkgmk.conf: pkgmk(8) configuration
 #
 
-export CFLAGS="-O2 -march=native -mtune=native"
+export CPPFLAGS="-D_FORTIFY_SOURCE=2"
+export CFLAGS="-O2 -march=native -mtune=native -pipe -fPIC -fPIE -fstack-protector-strong --param=ssp-buffer-size=4 -fno-plt -fstack-check"
 export CXXFLAGS="${CFLAGS}"
-
+export LDFLAGS="-fPIE -pie -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
 export MAKEFLAGS="-j4"
 
 case ${PKGMK_ARCH} in
@@ -22,7 +23,9 @@ case ${PKGMK_ARCH} in
 		;;
 esac
 
-#PKGMK_SOURCE_MIRRORS=(http://crux.nu/distfiles/)
+PKGMK_SOURCE_MIRRORS=(https://crux.nu/distfiles/)
+#PKGMK_SOURCE_MIRRORS=(https://crux.ster.zone/distfiles/)
+#PKGMK_SOURCE_MIRRORS=(https://c9.root.sx/ports/distfiles/)
 PKGMK_SOURCE_DIR="/usr/ports/distfiles"
 PKGMK_PACKAGE_DIR="/usr/ports/packages"
 PKGMK_WORK_DIR="/usr/ports/work/$name"