# Download guile 1.8.8 and apply this patch:
diff --git a/configure.in b/configure.in
index 217ac83..15600dc 100644
--- a/configure.in
+++ b/configure.in
@@ -1369,6 +1369,7 @@ AM_CONDITIONAL([BUILD_PTHREAD_SUPPORT],
 
 ## Check whether pthread_attr_getstack works for the main thread
 
+if test "$cross_compiling" != "yes"; then
 if test "$with_threads" = pthreads; then
 
 AC_MSG_CHECKING(whether pthread_attr_getstack works for the main thread)
@@ -1408,7 +1409,7 @@ CFLAGS="$old_CFLAGS"
 AC_MSG_RESULT($works)
 
 fi # with_threads=pthreads
-
+fi # !cross_compiling
 
 ## Cross building	
 if test "$cross_compiling" = "yes"; then