53 lines
1.0 KiB
Bash
53 lines
1.0 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 [[ "${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
|
|
. /etc/paludis/env.conf.d/O3.conf
|
|
fi
|
|
|
|
[[ -e /etc/paludis/hooks/setup_pkg_env.bash ]] && . /etc/paludis/hooks/setup_pkg_env.bash
|