From e4cbcefad13e55c64274c321a5ae0fef815092e0 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 15 Feb 2010 09:05:49 +0000 Subject: [PATCH] Fixed test for global constructor failing when cross building. --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index d45aec01..24527450 100644 --- a/SConstruct +++ b/SConstruct @@ -1364,7 +1364,7 @@ sh libtool --mode=link $CXX -o libtest.la -rpath / -version-info 0 mylib.lo >&5 $CXX -c $CFLAGS $CPPFLAGS mytest.$ac_ext >&5 sh libtool --mode=link $CXX -o mytest mytest.o libtest.la >&5 2>/dev/null -if test -x mytest; then +if test -x mytest -a "$cross_compiling" != yes; then myresult=`./mytest` if test "X$myresult" = "XPASS"; then AC_MSG_RESULT(yes)