From: Helmut Grohne Date: Sun, 5 Feb 2023 21:18:13 +0000 (+0000) Subject: Skip running a C program during cross compilation X-Git-Tag: talloc-2.4.1~1593 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0996ef86fddea45b53e197f520ab8111a10e5c0;p=thirdparty%2Fsamba.git Skip running a C program during cross compilation When passing --cross-compile, one has to specify a --cross-answers file and this test cannot be performed anyway, so skip it already. Signed-off-by: Helmut Grohne Reviewed-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript index a33d26706a5..93af81f1eca 100644 --- a/buildtools/wafsamba/wscript +++ b/buildtools/wafsamba/wscript @@ -378,7 +378,7 @@ def configure(conf): conf.CHECK_CODE('printf("hello world")', define='HAVE_SIMPLE_C_PROG', mandatory=True, - execute=True, + execute=not conf.env.CROSS_COMPILE, headers='stdio.h', msg='Checking simple C program')