portage-conf/make.conf/build

37 lines
1 KiB
Text
Raw Normal View History

2024-10-11 09:04:00 +03:00
# These warnings indicate likely runtime problems with LTO, so promote them
# to errors. If a package fails to build with these, LTO should not be used there.
WARNING_FLAGS="-Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
arch="znver4"
procs="12"
make_load="11.95"
emerge_load="11.90"
COMMON_FLAGS="-march=${arch} -O2 -pipe -fomit-frame-pointer -flto=7 ${WARNING_FLAGS}"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
# Go shenanigans
CGO_FLAGS="${COMMON_FLAGS}"
CGO_CXXFLAGS="${COMMON_FLAGS}"
CGO_FFLAGS="${COMMON_FLAGS}"
GOPROXY=""
GOAMD64="v4"
# Rust shenanigans
RUSTFLAGS="-C target-cpu=${arch}"
FEATURES="userfetch parallel-fetch parallel-install -ebuild-locks"
MAKEOPTS="-j${procs} --load-average ${make_load}"
EMERGE_DEFAULT_OPTS="--jobs 1024 --load-average ${emerge_load}"
#EMERGE_DEFAULT_OPTS="--jobs 2 --load-average ${emerge_load}"
PORTAGE_NICENESS="1"
PORTAGE_IONICE_COMMAND="ionice -c 1 -p \${PID}"
VIDEO_CARDS="amdgpu radeonsi"
INPUT_DEVICES="libinput wacom"