summaryrefslogtreecommitdiff
blob: e3013d63c59aa6c7a27c1818b629cac1db8e0eb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# The version of profile in our 'packages' does not yet set ABI for us nor
# export the CFLAGS_${ABI} envvars... The multilib-pkg patch does, but this
# won't be in portage until atleast .52_pre

if [ -n "${ABI}" ]; then
	export ABI
elif [ -n "${DEFAULT_ABI}" ]; then
	export ABI="${DEFAULT_ABI}"
else
	export ABI="amd64"
fi

#export CFLAGS_amd64
export CFLAGS_x86

# Make sure they updated to 2005.0 properly
if [ -L /lib32 -o -L /usr/lib32 ] && [ ${PORTAGE_CALLER} != "repoman" ] ; then
	eerror "It appears you have switched to the 2005.0 profile without following"
	eerror "the upgrade guide.  Please see the following URL for more information:"
	eerror "http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=1"
	exit 1
fi