Skip to content

Instantly share code, notes, and snippets.

@thesamesam
Last active May 19, 2024 03:18
Show Gist options
  • Save thesamesam/1a48cee5cc9584dd70604be22e544557 to your computer and use it in GitHub Desktop.
Save thesamesam/1a48cee5cc9584dd70604be22e544557 to your computer and use it in GitHub Desktop.
Portage QA
# -fdiagnostics-color=always: just for colour
# -frecord-gcc-switches: must be in *ALL* *FLAGS* (harmless but not needed in LDFLAGS) to be effective, or Portage skips it
COMMON_FLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
# You can use ${COMMON_FLAGS} here, but please remember to include as-needed manually then.
LDFLAGS="${LDFLAGS} -Wl,--defsym=__gentoo_check_ldflags__=0"
# Ensure Portage logs QA warnings
PORTAGE_ELOG_CLASSES="${PORTAGE_ELOG_CLASSES} qa"
# Gives warnings where packages have NEEDED SONAME dependencies on things not installed
FEATURES="${FEATURES} qa-unresolved-soname-deps"
# Note: FEATURES="parallel-install" may result in not seeing some QA warnings for e.g.
# xdg db/cache updates.
# ADDITIONALLY: your call, but ionen has recently started developing this: https://github.com/ionenwks/iwdevtools
# Hugely useful set of tools which are enabled via bashrc!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment