Skip to content

Instantly share code, notes, and snippets.

@thesamesam
Last active Aug 17, 2021
Embed
What would you like to do?
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