Hi Ron, here is a patch which enables LFS support when cross-compiling libstdc++ for mingw32.
The patch is fully tested and I have confirmed that it works! (Great, *finally* I no longer have to compile natively!!) IMHO this is a bug in libstdc++ - I've already reported it as <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22388>. Before GCC 3.4, LFS was not supported for mingw32. Starting with 3.4, it was, but the configuration that is used for cross-compiling libstdc++ (libstdc++-v3/crossconfig.m4) does _not_ enable LFS. The patch below enables it and re-runs autoconf. I guess the problem does not occur with upstream's package because they build everything natively under Windows, and in that case, libstdc++ runs some configure tests to determine whether LFS is present. It'd be great if you could apply this patch soon! Cheers, Richard -- __ _ |_) /| Richard Atterer | \/¯| http://atterer.net ¯ '` ¯ diff --minimal --unified -urN debian.orig/control debian/control --- debian.orig/control 2005-07-09 17:47:49.000000000 +0200 +++ debian/control 2005-07-09 20:03:00.000000000 +0200 @@ -1,7 +1,7 @@ Source: mingw32 Section: devel Priority: optional -Build-Depends: mingw32-binutils, mingw32-runtime, debhelper (>= 4.0), gettext, perl +Build-Depends: mingw32-binutils, mingw32-runtime, debhelper (>= 4.0), gettext, perl, autoconf Maintainer: Ron Lee <[EMAIL PROTECTED]> Standards-Version: 3.6.1.1 diff --minimal --unified -urN debian.orig/patches/large-file-support.patch debian/patches/large-file-support.patch --- debian.orig/patches/large-file-support.patch 1970-01-01 01:00:00.000000000 +0100 +++ debian/patches/large-file-support.patch 2005-07-09 19:59:35.000000000 +0200 @@ -0,0 +1,10 @@ +--- gcc-3.4.2-20040916-1/libstdc++-v3/crossconfig.m4.orig 2004-08-15 10:41:14.000000000 +0200 ++++ gcc-3.4.2-20040916-1/libstdc++-v3/crossconfig.m4 2005-07-09 19:53:15.000000000 +0200 +@@ -234,6 +234,7 @@ + GLIBCXX_CHECK_LINKER_FEATURES + GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT + GLIBCXX_CHECK_WCHAR_T_SUPPORT ++ AC_DEFINE(_GLIBCXX_USE_LFS) + ;; + *-netbsd*) + AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \ diff --minimal --unified -urN debian.orig/rules debian/rules --- debian.orig/rules 2005-07-09 20:54:14.000000000 +0200 +++ debian/rules 2005-07-09 20:54:06.000000000 +0200 @@ -105,6 +105,9 @@ patch -p0 < $$p; \ done; + # Extra fixes + cd $(build_src)/gcc-3.4.2-20040916-1/libstdc++-v3 && autoconf + touch $@