summaryrefslogtreecommitdiff
blob: 2fc6a40b10aee4725cecf934727c78a4bce36d2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

# We change around a few variables, since we've enabled splitdebug.
debug=0
for flag in ${CFLAGS}
do
	case ${flag} in
		-g*) debug=1 ;;
	esac
done

if [ ${debug} -eq 0 ]
then
	if [[ "${EBUILD_PHASE}" == "setup" ]]
	then
		echo "You should enable -g (or higher) for debugging!"
	fi
fi