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

such as CC, CFLAGS, etc that will cause buildroot to break
This commit is contained in:
Eric Andersen 2006-12-13 07:21:16 +00:00
parent 4f57ecd7f1
commit ef6528bb8f

View File

@ -5,6 +5,56 @@
echo "" echo ""
echo "Checking build system dependencies:" 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' # check build system 'sed'