diff options
| -rw-r--r-- | profiles/amd64-desktop/make.defaults | 118 |
1 files changed, 61 insertions, 57 deletions
diff --git a/profiles/amd64-desktop/make.defaults b/profiles/amd64-desktop/make.defaults index ac851eb..b97bb64 100644 --- a/profiles/amd64-desktop/make.defaults +++ b/profiles/amd64-desktop/make.defaults | |||
| @@ -1,16 +1,20 @@ | |||
| 1 | # CPU flags | 1 | #-----# |
| 2 | # | 2 | # CPU # |
| 3 | #-----# | ||
| 3 | CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2 popcnt" | 4 | CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2 popcnt" |
| 4 | 5 | ||
| 5 | # LTO flags | 6 | #-------------------------------------------------------------------# |
| 6 | # | 7 | # LTO # |
| 7 | # SOURCE: https://wiki.gentoo.org/wiki/LTO#Enabling_LTO_System-wide | 8 | # # |
| 9 | # Source: https://wiki.gentoo.org/wiki/LTO#Enabling_LTO_System-wide # | ||
| 10 | #-------------------------------------------------------------------# | ||
| 8 | WARNING_FLAGS="-Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" | 11 | WARNING_FLAGS="-Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" |
| 9 | LTO_FLAGS="-flto ${WARNING_FLAGS}" | 12 | LTO_FLAGS="-flto ${WARNING_FLAGS}" |
| 10 | USE="${USE} lto" | 13 | USE="${USE} lto" |
| 11 | 14 | ||
| 12 | # Common compilation flags | 15 | #-------------------# |
| 13 | # | 16 | # Compilation flags # |
| 17 | #-------------------# | ||
| 14 | COMMON_FLAGS="-march=x86-64-v3 -O2 -pipe ${LTO_FLAGS}" | 18 | COMMON_FLAGS="-march=x86-64-v3 -O2 -pipe ${LTO_FLAGS}" |
| 15 | RUSTFLAGS="-C target-cpu=x86-64" | 19 | RUSTFLAGS="-C target-cpu=x86-64" |
| 16 | 20 | ||
| @@ -19,82 +23,82 @@ CXXFLAGS="${COMMON_FLAGS}" | |||
| 19 | FCFLAGS="${COMMON_FLAGS}" | 23 | FCFLAGS="${COMMON_FLAGS}" |
| 20 | FFLAGS="${COMMON_FLAGS}" | 24 | FFLAGS="${COMMON_FLAGS}" |
| 21 | 25 | ||
| 22 | # Distro | 26 | #--------# |
| 23 | # | 27 | # Gentoo # |
| 24 | # Enable: distribution kernel, prebuilt binaries | 28 | #--------# |
| 25 | USE="${USE} dist-kernel bindist" | 29 | USE="${USE} dist-kernel bindist" |
| 26 | 30 | ||
| 27 | # Security | 31 | #----------# |
| 28 | # | 32 | # Security # |
| 29 | # Enable: process capabilities, file capabilities, access control lists | 33 | #----------# |
| 30 | # Disable: suid, single-use key | ||
| 31 | USE="${USE} caps filecaps acl -suid -skey" | 34 | USE="${USE} caps filecaps acl -suid -skey" |
| 32 | 35 | ||
| 33 | # Optimizations | 36 | #---------------# |
| 34 | # | 37 | # Optimizations # |
| 35 | # Enable: orc | 38 | #---------------# |
| 36 | # | ||
| 37 | # NOTES: hardened profile disables orc which is mostly safe and provides | ||
| 38 | # speedup | ||
| 39 | USE="${USE} orc" | 39 | USE="${USE} orc" |
| 40 | 40 | ||
| 41 | # Desktop | 41 | #---------# |
| 42 | # | 42 | # Desktop # |
| 43 | # Enable: screencast support, fontconfig | 43 | #---------# |
| 44 | USE="${USE} screencast fontconfig" | 44 | USE="${USE} screencast fontconfig" |
| 45 | 45 | ||
| 46 | # Xorg | 46 | #------# |
| 47 | # | 47 | # Xorg # |
| 48 | # Disable: X and its extensions | 48 | #------# |
| 49 | # | ||
| 50 | # NOTES: enable them per-package | ||
| 51 | USE="${USE} -X -xcomposite -xpresent -xinerama -xscreensaver -xv -startup-notification" | 49 | USE="${USE} -X -xcomposite -xpresent -xinerama -xscreensaver -xv -startup-notification" |
| 52 | 50 | ||
| 53 | # GTK & QT | 51 | #-----# |
| 54 | # | 52 | # GTK # |
| 55 | # Enable: introspection and gstreamer for GTK, qml for QT | 53 | #-----# |
| 56 | # Disable: gtk documentation and gtk2, gtk3, qt5, qt6 toolkits | ||
| 57 | # | ||
| 58 | # NOTES: enable them per-package | ||
| 59 | USE="${USE} introspection gstreamer -gtk2 -gtk3 -gtk-doc" | 54 | USE="${USE} introspection gstreamer -gtk2 -gtk3 -gtk-doc" |
| 55 | |||
| 56 | #----# | ||
| 57 | # QT # | ||
| 58 | #----# | ||
| 60 | USE="${USE} qml -qt5 -qt6" | 59 | USE="${USE} qml -qt5 -qt6" |
| 61 | 60 | ||
| 62 | # GNOME & KDE | 61 | #-------# |
| 63 | # | 62 | # GNOME # |
| 64 | # Disable: disable gnome and kde services/features which are not strictly necessary to run a standalone desktop | 63 | #-------# |
| 65 | USE="${USE} -gnome -eds -gnome-online-accounts -sysprof" | 64 | USE="${USE} -gnome -eds -gnome-online-accounts -sysprof" |
| 65 | |||
| 66 | #-----# | ||
| 67 | # KDE # | ||
| 68 | #-----# | ||
| 66 | USE="${USE} -kde -plasma -kwallet -kaccounts" | 69 | USE="${USE} -kde -plasma -kwallet -kaccounts" |
| 67 | 70 | ||
| 68 | # Audio | 71 | #-------# |
| 69 | # | 72 | # Audio # |
| 70 | # Enable: jack, pipewire | 73 | #-------# |
| 71 | USE="${USE} jack pipewire" | 74 | USE="${USE} jack pipewire" |
| 72 | 75 | ||
| 73 | # Graphics | 76 | #----------# |
| 74 | # | 77 | # Graphics # |
| 75 | # Enable: vaapi, vulkan | 78 | #----------# |
| 76 | USE="${USE} vaapi vulkan" | 79 | USE="${USE} vaapi vulkan" |
| 77 | 80 | ||
| 78 | # Misc | 81 | #------# |
| 79 | # | 82 | # Misc # |
| 80 | # Enable: fftw library, MTP for android file transfer | 83 | #------# |
| 81 | USE="${USE} fftw mtp" | 84 | USE="${USE} fftw mtp" |
| 82 | 85 | ||
| 83 | # Video cards | 86 | #-------------# |
| 84 | # | 87 | # Video cards # |
| 85 | # Enable: framebuffer device (basic), AMD related video card support | 88 | #-------------# |
| 86 | VIDEO_CARDS="fbdev amdgpu radeon radeonsi zink" | 89 | VIDEO_CARDS="fbdev amdgpu radeon radeonsi zink" |
| 87 | 90 | ||
| 88 | # Input devices | 91 | #---------------# |
| 89 | # | 92 | # Input Devices # |
| 90 | # Enable: evdev, libinput (manages most common inputs such as mouse, keyboard, touchpad etc) | 93 | #---------------# |
| 91 | INPUT_DEVICES="evdev libinput" | 94 | INPUT_DEVICES="evdev libinput" |
| 92 | 95 | ||
| 93 | # Localization | 96 | #--------------# |
| 94 | # | 97 | # Localization # |
| 98 | #--------------# | ||
| 95 | L10N="" | 99 | L10N="" |
| 96 | 100 | ||
| 97 | # Licensing | 101 | #----------# |
| 98 | # | 102 | # Licenses # |
| 99 | # Enable: nothing except free and binary redistributables | 103 | #----------# |
| 100 | ACCEPT_LICENSE="-* @FREE @BINARY-REDISTRIBUTABLE" | 104 | ACCEPT_LICENSE="-* @FREE @BINARY-REDISTRIBUTABLE" |
