aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2010-02-15 09:05:49 +0000
committerVincent Richard <[email protected]>2010-02-15 09:05:49 +0000
commite4cbcefad13e55c64274c321a5ae0fef815092e0 (patch)
treeda6c394369f6f677177747fc854ac38ce9240cc3
parentUpdated gettext m4 macros to 0.17. (diff)
downloadvmime-e4cbcefad13e55c64274c321a5ae0fef815092e0.tar.gz
vmime-e4cbcefad13e55c64274c321a5ae0fef815092e0.zip
Fixed test for global constructor failing when cross building.
-rw-r--r--SConstruct2
1 files changed, 1 insertions, 1 deletions
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)