--- source/configure.in.virgin 2005-06-27 07:22:15.000000000 +0200 +++ source/configure.in 2005-06-27 07:23:11.000000000 +0200 @@ -628,7 +628,8 @@ #endif } ], [LINUX_LFS_SUPPORT=yes], [LINUX_LFS_SUPPORT=no], [LINUX_LFS_SUPPORT=cross]) - CPPFLAGS="$old_CPPFLAGS" +# Ugly hack for cross compile. Just set the CPPFLAGS and go on. + CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $old_CPPFLAGS" if test x$LINUX_LFS_SUPPORT = xyes ; then CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS" AC_DEFINE(_LARGEFILE64_SOURCE, 1, [Whether to enable large file support])