Skip to content

Instantly share code, notes, and snippets.

@0xA50C1A1
Created January 6, 2023 09:19
Show Gist options
  • Save 0xA50C1A1/1cad4b88030772c892144b6a2280fc49 to your computer and use it in GitHub Desktop.
Save 0xA50C1A1/1cad4b88030772c892144b6a2280fc49 to your computer and use it in GitHub Desktop.
Gentoo make.conf for Ryzen 7 4700U
COMMON_FLAGS="-march=znver2 -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j9 -l8"
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse \
sse2 sse3 sse4_1 sse4_2 sse4a ssse3"
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C
ACCEPT_KEYWORDS="~amd64"
ACCEPT_LICENSE="* -@EULA"
FEATURES="userpriv usersync userfetch usersandbox parallel-install \
parallel-fetch unmerge-orphans"
VIDEO_CARDS="amdgpu radeonsi"
INPUT_DEVICES="libinput synaptics"
EMERGE_DEFAULT_OPTS="--jobs=9 --load-average=8 --ask --keep-going --quiet-build"
INSTALL_MASK="/lib/systemd/*/*.service /usr/lib/systemd/*/*.service"
#
# USE flags
#
DISABLE="-bindist -systemd -branding -python -perl -pulseaudio -gnome \
-networkmanager -bash-completion -wayland"
ENABLE="X xinerama opengl vulkan alsa threads unicode icu"
USE="${DISABLE} ${ENABLE}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment