etc-gentoo/paludis/bashrc

64 lines
1.4 KiB
Bash

# bashrc
## global settings
CC="clang"
BUILD_CC="clang"
CXX="clang++"
BUILD_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
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 [[
"${CATEGORY}/${PN}" == "app-emulation/wine" ||
"${CATEGORY}/${PN}" == "app-office/libreoffice" ||
"${CATEGORY}/${PN}" == "dev-qt/qtwebkit" ||
"${CATEGORY}/${PN}" == "mail-client/thunderbird" ||
"${CATEGORY}/${PN}" == "net-libs/webkit-gtk" ||
"${CATEGORY}/${PN}" == "sys-devel/llvm" ||
"${CATEGORY}/${PN}" == "www-client/firefox" ||
"${CATEGORY}/${PN}" == "www-client/torbrowser" ||
"${CATEGORY}/${PN}" == "x11-libs/wxGTK"
]]
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