2015-02-27 00:58:55 +00:00
|
|
|
# bashrc
|
|
|
|
|
|
|
|
## global settings
|
2015-09-07 19:38:53 +00:00
|
|
|
CC="clang"
|
|
|
|
BUILD_CC="clang"
|
|
|
|
CXX="clang++"
|
|
|
|
BUILD_CXX="clang++"
|
|
|
|
CFLAGS="-march=core-avx2 -O2 -pipe -Wall -Qunused-arguments -fcolor-diagnostics"
|
2015-02-27 00:58:55 +00:00
|
|
|
CXXFLAGS="${CFLAGS}"
|
2015-03-02 01:19:34 +00:00
|
|
|
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
|
2015-09-05 21:15:02 +00:00
|
|
|
MAKEOPTS="-j8"
|
2015-09-04 20:39:04 +00:00
|
|
|
EPATCH_USER_SOURCE=/etc/paludis/patches
|
2015-09-09 17:38:43 +00:00
|
|
|
CMAKE_MAKEFILE_GENERATOR="ninja"
|
2015-02-27 00:58:55 +00:00
|
|
|
|
|
|
|
I_KNOW_WHAT_I_AM_DOING="yes"
|
|
|
|
I_PROMISE_TO_SUPPLY_PATCHES_WITH_BUGS=1
|
|
|
|
|
|
|
|
|
2015-03-01 22:07:45 +00:00
|
|
|
# git-r3
|
|
|
|
EGIT_CLONE_TYPE=shallow
|
|
|
|
|
|
|
|
|
2015-08-09 12:25:33 +00:00
|
|
|
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
|
2015-02-27 00:58:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
## per-package settings
|
|
|
|
|
|
|
|
# laptop-compat, keep this at the top
|
2015-09-07 21:29:32 +00:00
|
|
|
if [[ "${MERGE_TYPE}" == "buildonly" ]]
|
2015-02-27 00:58:55 +00:00
|
|
|
then
|
|
|
|
CFLAGS="-march=core-avx-i -O2 -pipe"
|
|
|
|
CXXFLAGS="-march=core-avx-i -O2 -pipe"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# O3
|
2015-09-06 18:34:18 +00:00
|
|
|
if [[
|
|
|
|
"${CATEGORY}" == "games-"* &&
|
|
|
|
"${CATEGORY}/${PN}" != "games-engines/OpenJK"
|
|
|
|
]]
|
2015-02-27 00:58:55 +00:00
|
|
|
then
|
2015-09-07 21:31:03 +00:00
|
|
|
CFLAGS="${CFLAGS} -O3"
|
|
|
|
CXXFLAGS="${CXXFLAGS} -O3"
|
2015-02-27 00:58:55 +00:00
|
|
|
fi
|
|
|
|
|
2015-09-07 19:38:53 +00:00
|
|
|
[[ -e /etc/paludis/hooks/setup_pkg_env.bash ]] && . /etc/paludis/hooks/setup_pkg_env.bash
|