Hi!
While porting glib to interix, i stumbled over a problem i didn't hit for a
while (and in fact forgot that it existed on interix): long long double is
broken. this bites me in the gnulib vasnprintf implementation, which calls
snprintf from libc which immediately crashes ... :(
i fixed this for glib with the attached patch (longlongddouble.m4 from gettext?
but you wrote it bruno, so i trust you know where this has to go... ;)). Should
i do more on this? Are there other locations that could use some patching then?
Thanks,
Markus
diff -ru -x '*.Po' -x '*.Plo' -x '*.lo' -x '*.la' -x '*.o' glib-2.28.6.orig/acinclude.m4 glib-2.28.6/acinclude.m4
--- glib-2.28.6.orig/acinclude.m4 2011-06-09 14:05:51 +0200
+++ glib-2.28.6/acinclude.m4 2011-06-10 08:25:58 +0200
@@ -254,9 +254,13 @@
AC_DEFUN([gt_TYPE_LONGDOUBLE],
[
+ AC_REQUIRE([AC_CANONICAL_HOST])
AC_CACHE_CHECK([for long double], gt_cv_c_long_double,
[if test "$GCC" = yes; then
- gt_cv_c_long_double=yes
+ case "$host" in
+ *-interix*) gt_cv_c_long_double=no ;;
+ *) gt_cv_c_long_double=yes ;;
+ esac
else
AC_TRY_COMPILE([
/* The Stardent Vistra knows sizeof(long double), but does not support it. */