mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-31 15:07:43 +00:00
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:
parent
4f57ecd7f1
commit
ef6528bb8f
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user