]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Skip running a C program during cross compilation
authorHelmut Grohne <helmut@subdivi.de>
Sun, 5 Feb 2023 21:18:13 +0000 (21:18 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 20 Feb 2023 21:58:32 +0000 (21:58 +0000)
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 <helmut@subdivi.de>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/wscript

index a33d26706a5845af9deb72139f048e3effb86049..93af81f1eca58c701779f904ba11c495a4b35bc1 100644 (file)
@@ -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')