[Buildroot] [PATCH] Makefile: unset MAKEFLAGS

Peter Korsgaard jacmet at uclibc.org
Sun Jul 7 19:58:21 UTC 2013


>>>>> "Samuel" == Samuel Martin <s.martin49 at gmail.com> writes:

 Samuel> MAKEFLAGS can carry options that make Buildroot failed, eg. '-jN'.
 Samuel> To avoid this, unset the MAKEFLAGS environment variable.

Unfortunately this also drops '-s' from child make invocations, making
silent builds significantly more noisy.

We have .NOTPARALLEL: in the top level Makefile, isn't that enough to
ensure funky MAKEFLAGS settings? Anything else you encountered?


 Samuel> Signed-off-by: Samuel Martin <s.martin49 at gmail.com>
 Samuel> ---
 Samuel>  Makefile | 1 +
 Samuel>  1 file changed, 1 insertion(+)

 Samuel> diff --git a/Makefile b/Makefile
 Samuel> index 015fbdf..11a7b70 100644
 Samuel> --- a/Makefile
 Samuel> +++ b/Makefile
 Samuel> @@ -207,6 +207,7 @@ unexport CFLAGS
 Samuel>  unexport CXXFLAGS
 Samuel>  unexport GREP_OPTIONS
 Samuel>  unexport CONFIG_SITE
 Samuel> +unexport MAKEFLAGS
 Samuel>  unexport QMAKESPEC
 Samuel>  unexport TERMINFO
 
 Samuel> -- 
 Samuel> 1.8.3.2

 Samuel> _______________________________________________
 Samuel> buildroot mailing list
 Samuel> buildroot at busybox.net
 Samuel> http://lists.busybox.net/mailman/listinfo/buildroot


-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list