# bashrc ## global settings CC="clang" CXX="clang++" CFLAGS="-march=core-avx2 -O2 -pipe -Wall -Qunused-arguments -fcolor-diagnostics" CXXFLAGS="${CFLAGS}" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" MAKEOPTS="-j8" EPATCH_USER_SOURCE=/etc/paludis/patches CMAKE_MAKEFILE_GENERATOR="ninja" I_KNOW_WHAT_I_AM_DOING="yes" I_PROMISE_TO_SUPPLY_PATCHES_WITH_BUGS=1 # git-r3 EGIT_CLONE_TYPE=shallow GAMES_PREFIX=/usr GAMES_PREFIX_OPT=/opt GAMES_DATADIR=/usr/share GAMES_DATADIR_BASE=/usr/share GAMES_SYSCONFDIR=/etc GAMES_STATEDIR=/var/lib GAMES_LOGDIR=/var/log GAMES_BINDIR=${GAMES_PREFIX}/bin GAMES_GROUP=users ## per-package settings # laptop-compat, keep this at the top if [[ "${MERGE_TYPE}" == "buildonly" ]] then CFLAGS="-march=core-avx-i -O2 -pipe" CXXFLAGS="-march=core-avx-i -O2 -pipe" fi # O3 if [[ "${CATEGORY}" == "games-"* && "${CATEGORY}/${PN}" != "games-engines/OpenJK" ]] then CFLAGS="${CFLAGS} -O3" CXXFLAGS="${CXXFLAGS} -O3" fi [[ -e /etc/paludis/hooks/setup_pkg_env.bash ]] && . /etc/paludis/hooks/setup_pkg_env.bash BUILD_CC=${CC} BUILD_CXX=${CXX}