Skip running a C program during cross compilation
[bbaumbach/samba-autobuild/.git] / 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')