@@ -1620,22 +1620,27 @@ if test x$host_win32 = xno; then
1620
1620
LIBS="$LIBS $DL_LIB"
1621
1621
AC_DEFINE ( HAVE_DL_LOADER ,1 ,[ dlopen-based dynamic loader available] )
1622
1622
dnl from glib's configure.ac
1623
- AC_CACHE_CHECK ( [ for preceeding underscore in symbols] ,
1624
- mono_cv_uscore ,[
1625
- AC_TRY_RUN ( [ #include <dlfcn.h>
1626
- int mono_underscore_test (void) { return 42; }
1627
- int main() {
1628
- void *f1 = (void*)0, *f2 = (void*)0, *handle;
1629
- handle = dlopen ((void*)0, 0);
1630
- if (handle) {
1631
- f1 = dlsym (handle, "mono_underscore_test");
1632
- f2 = dlsym (handle, "_mono_underscore_test");
1633
- } return (!f2 || f1);
1634
- }] ,
1623
+ if test "x$cross_compiling" = "xyes"; then
1624
+ AC_MSG_RESULT ( cross compiling , assuming no )
1625
+ mono_cv_uscore=no
1626
+ else
1627
+ AC_CACHE_CHECK ( [ for preceeding underscore in symbols] ,
1628
+ mono_cv_uscore ,[
1629
+ AC_TRY_RUN ( [ #include <dlfcn.h>
1630
+ int mono_underscore_test (void) { return 42; }
1631
+ int main() {
1632
+ void *f1 = (void*)0, *f2 = (void*)0, *handle;
1633
+ handle = dlopen ((void*)0, 0);
1634
+ if (handle) {
1635
+ f1 = dlsym (handle, "mono_underscore_test");
1636
+ f2 = dlsym (handle, "_mono_underscore_test");
1637
+ } return (!f2 || f1);
1638
+ }] ,
1635
1639
[ mono_cv_uscore=yes] ,
1636
1640
[ mono_cv_uscore=no] ,
1637
- [ ] )
1638
- ] )
1641
+ [ ] )
1642
+ ] )
1643
+ fi
1639
1644
if test "x$mono_cv_uscore" = "xyes"; then
1640
1645
MONO_DL_NEED_USCORE=1
1641
1646
else
0 commit comments