summaryrefslogtreecommitdiff
blob: 421f2459e5272095c2bb1e549604df8e43f25e63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
if [[ ${EBUILD_PHASE} == "setup" ]] ; then

	# on x86, -pg requires the frame pointer, so turning it off makes no sense
	if hasq profile ${IUSE} && \
	   hasq -fomit-frame-pointer ${CFLAGS} ${CXXFLAGS}
	then
		eerror "\nUSE=profile and -fomit-frame-pointer make no sense"
		eerror "Fix your build settings to avoid build failures\n"
		[[ -z ${EPAUSE_IGNORE} ]] && sleep 5
	fi

fi