Fixed test for global constructor failing when cross building.
This commit is contained in:
parent
64cf047f72
commit
e4cbcefad1
@ -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
|
$CXX -c $CFLAGS $CPPFLAGS mytest.$ac_ext >&5
|
||||||
sh libtool --mode=link $CXX -o mytest mytest.o libtest.la >&5 2>/dev/null
|
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`
|
myresult=`./mytest`
|
||||||
if test "X$myresult" = "XPASS"; then
|
if test "X$myresult" = "XPASS"; then
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
|
Loading…
Reference in New Issue
Block a user