changeset 31552:24c3ef20a1f2

Use cflag_check utility function in cross-compilation check.
author diego
date Fri, 02 Jul 2010 10:02:34 +0000
parents 61494fd9176c
children 6a5073938364
files configure
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Fri Jul 02 09:38:46 2010 +0000
+++ b/configure	Fri Jul 02 10:02:34 2010 +0000
@@ -1658,11 +1658,8 @@
 
 echocheck "cross compilation"
 if test $_cross_compile = auto ; then
-  cat > $TMPC << EOF
-int main(void) { return 0; }
-EOF
   _cross_compile=yes
-  cc_check && "$TMPEXE" && _cross_compile=no
+  cflag_check "" && "$TMPEXE" && _cross_compile=no
 fi
 echores $_cross_compile