split make.conf into common and local configuration

This commit is contained in:
root 2023-07-17 00:02:11 +02:00
commit cdc3602577
2 changed files with 6 additions and 8 deletions

33
make.conf/00common Normal file
View file

@ -0,0 +1,33 @@
COMMON_FLAGS="-O2 -pipe -march=native -flto"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
RUSTFLAGS="-C target-cpu=native -C opt-level=3"
CC="clang"
CXX="clang++"
AR="llvm-ar"
NM="llvm-nm"
ranlib="llvm-ranlib"
LDFLAGS="-fuse-ld=mold -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed -flto"
# EMERGE_DEFAULT_OPTS="--jobs 2"
USE="clang lto pulseaudio X -systemd -wayland"
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3"
L10N="en en_GB de"
LC_MESSAGES=C.utf8
GENTOO_MIRRORS="\
rsync://ftp.fau.de/gentoo \
rsync://ftp.halifax.rwth-aachen.de/gentoo/ \
https://ftp.fau.de/gentoo \
https://ftp.halifax.rwth-aachen.de/gentoo/ \
"