summaryrefslogtreecommitdiff
blob: 71acdf820a052f0e471329bab191b65a64fa958c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Here we remove any ABI that isn't native.
case ${ARCH} in
	mips)
		# Both n32 and n64 are 64-bit kernel and userland.
		# n64 is 64-bit pointers/long
		# n32 is 32-bit pointers/long
		case ${USE} in
			n32)
				export CFLAGS="${CFLAGS/-mabi=*/-mabi=n32}"
				export CXXFLAGS="${CFLAGS}"
				;;
			n64)
				export CFLAGS="${CFLAGS/-mabi=*/-mabi=64}"
				export CXXFLAGS="${CFLAGS}"
				;;
		esac
		;;
esac