This commit is contained in:
Out Of Ideas 2024-01-26 13:17:54 -06:00
parent 34f302ed80
commit d8e3d075f8
5 changed files with 65 additions and 0 deletions

8
portage/env/compiler-clang vendored Normal file
View File

@ -0,0 +1,8 @@
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CC="clang"
CXX="clangx++"
AR="ar"
NM="nm"
RANLIB="ranlib"

8
portage/env/compiler-gcc vendored Normal file
View File

@ -0,0 +1,8 @@
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CC="gcc"
CXX="g++"
AR="ar"
NM="nm"
RANLIB="ranlib"

8
portage/env/compiler-gcc-lto vendored Normal file
View File

@ -0,0 +1,8 @@
CFLAGS="-flto=8 -march=native -O2 -pipe -falign-functions=32"
CXXFLAGS="${CFLAGS}"
CC="gcc"
CXX="g++"
AR="gcc-ar"
NM="gcc-nm"
RANLIB="gcc-ranlib"

1
portage/env/llvm-kernel vendored Normal file
View File

@ -0,0 +1 @@
LLVM=1

40
portage/make.conf Normal file
View File

@ -0,0 +1,40 @@
CC=clang
CXX=clang++
AR="llvm-ar"
NM="llvm-nm"
RANLIB="llvm-ranlib"
LDFLAGS="-Wl,-O2 -Wl,--as-needed -fuse-ld=lld"
RUSTFLAGS="-C debuginfo=0 -C codegen-units=1 -C target-cpu=native -C opt-level=3"
COMMON_FLAGS="-march=native -O2 -pipe -flto"
CFLAGS="${COMMON_FLAGS} -falign-functions=32"
CXXFLAGS="${CFLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j8 -l9"
USE_ENABLED="asm clang contrib dbus default-lld drm elogind execline gles2 graphite grub gui jit kiosk llvm llvm-libunwind lto lz4 minimal native-symlinks network nvidia opengl openmp orc pgo pipewire pulseaudio qt5 system-av1 system-boost syst em-bootstrap system-ffmpeg system-harfbuzz system-icu system-jpeg system-librnp system-libevent system-libvpx system-lua system-llvm system-libyaml system-lz4 system-man system-png system-python-libs system-sqlite system-ssl system-webp system-zlib threads wayland widgets xs"
USE_DISABLED="-a52 -alsa -aqua -cd -cjk -clamav -coreaudio -css -cups -debug -dvd -elf -emboss -gcrypt -gdbm -geoip -geolocation -gles2-only -gles3 -gnome-keyrings -ibm -ios -ipod -ieee1394 -ldap -mono -nntp -pcmcia -pkinit -polkit -plasma -policykit -quicktime -qt4 -smartcard -startup-notification -systemd"
#USE_DISABLED="-*" # Don't touch this
USE="${USE_DISABLED} ${USE_ENABLED} "
#CHOST="x86_64-gentoo-linux-musl"
VIDEO_CARDS="nouveau vesa fbdev intel 1965 iris"
GRUB_PLATFORMS="efi-64"
LC_MESSAGES=C
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo \
http://gentoo.mirrors.ovh.net/gentoo-distfiles/ \
http://mirror.leaseweb.com/gentoo/"
#PORTAGE_SCHEDULING_POLICY="idle" # Emerge gives errors when this line is uncommented
EMERGE_DEFAULT_OPTS="--keep-going --verbose --quiet-build --with-bdeps=y --complete-graph=y --deep --ask"
FEATURES="candy fixlafiles unmerge-orphans notitles parallel-install parallel-fetch clean-logs"
#RUBY_TARGETS="ruby31"
#RUBY_SINGLE_TARGET="ruby31"
#PYTHON_TARGETS="python3_11"
#PYTHON_SINGLE_TARGET="python3_11"
#LUA_TARGETS="lua5-4"
#LUA_SINGLE_TARGET="lua5-4"