Commit ef6528bb authored by Eric Andersen's avatar Eric Andersen
Browse files

add checks for when people have foolishly set things in their enviroment

such as CC, CFLAGS, etc that will cause buildroot to break
parent 4f57ecd7
Loading
Loading
Loading
Loading
+59 −9
Original line number Diff line number Diff line
@@ -5,6 +5,56 @@
echo ""
echo "Checking build system dependencies:"


#############################################################
#
# check build system 'environment'
#
#############################################################
if test -n "$CC" ; then
	echo "CC clean:					FALSE"
	/bin/echo -e "\n\nYou must run 'unset CC' so buildroot can run with";
	/bin/echo -e "a clean enviroment on your build machine\n";
	exit 1;
fi;
echo "CC clean:					Ok"


if test -n "$CXX" ; then
	echo "CXX clean:				FALSE"
	/bin/echo -e "\n\nYou must run 'unset CXX' so buildroot can run with";
	/bin/echo -e "a clean enviroment on your build machine\n";
	exit 1;
fi;
echo "CXX clean:					Ok"


if test -n "$CPP" ; then
	echo "CPP clean:				FALSE"
	/bin/echo -e "\n\nYou must run 'unset CPP' so buildroot can run with";
	/bin/echo -e "a clean enviroment on your build machine\n";
	exit 1;
fi;
echo "CPP clean:					Ok"


if test -n "$CXXFLAGS" ; then
	echo "CXXFLAGS clean:				FALSE"
	/bin/echo -e "\n\nYou must run 'unset CXXFLAGS' so buildroot can run with";
	/bin/echo -e "a clean enviroment on your build machine\n";
	exit 1;
fi;
echo "CXXFLAGS clean:					Ok"


if test -n "$CXXFLAGS" ; then
	echo "CXXFLAGS clean:				FALSE"
	/bin/echo -e "\n\nYou must run 'unset CXXFLAGS' so buildroot can run with";
	/bin/echo -e "a clean enviroment on your build machine\n";
	exit 1;
fi;
echo "CXXFLAGS clean:					Ok"

#############################################################
#
# check build system 'sed'