diff options
Diffstat (limited to 'core/conf/pkgmk.conf')
-rw-r--r-- | core/conf/pkgmk.conf | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/core/conf/pkgmk.conf b/core/conf/pkgmk.conf index 047ebc0..94bc9df 100644 --- a/core/conf/pkgmk.conf +++ b/core/conf/pkgmk.conf @@ -1,21 +1,11 @@ # # /etc/pkgmk.conf: pkgmk(8) configuration # -# ONLY FOR x86 64 PROCESSORS - -export CFLAGS="-Wall -Wextra -Wno-inline -Wundef -Wformat=2 -Wformat-security -Wformat-nonliteral -Wlogical-op -Wsign-compare -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wsuggest-attribute=noreturn -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Werror=overflow -Wdate-time -Wnested-externs" - -#-ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -ffunction-sections -fdata-sections -ffat-lto-objects" - -CFLAGS="${CFLAGS} -fPIC -fPIE -fstack-protector -fstack-protector-strong --param=ssp-buffer-size=4 -fno-plt -fstack-check -g -O2 -march=x86-64 -pipe" +export CFLAGS="-O2 -g -march=x86-64 -pipe" export CXXFLAGS="${CFLAGS}" -export CPPFLAGS="-Wp,-D_FORTIFY_SOURCE=2" - -#export LDFLAGS="-fPIE -pie -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" -export LDFLAGS="-Wl,--as-needed -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,relro -Wl,-z,now -pie" -export MAKEFLAGS="-j$(nproc)" +# export MAKEFLAGS="-j2" case ${PKGMK_ARCH} in "64"|"") @@ -32,11 +22,12 @@ case ${PKGMK_ARCH} in ;; esac -#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_MIRRORS=(http://c9.root.sx/ports/distfiles/) +# PKGMK_SOURCE_DIR="$PWD" PKGMK_SOURCE_DIR="/usr/ports/distfiles" +# PKGMK_PACKAGE_DIR="$PWD" PKGMK_PACKAGE_DIR="/usr/ports/packages" +# PKGMK_WORK_DIR="$PWD/work" PKGMK_WORK_DIR="/usr/ports/work/$name" # PKGMK_DOWNLOAD="no" # PKGMK_IGNORE_FOOTPRINT="no" |