
Ferenc Wagner writes:
- Macro: _FILE_OFFSET_BITS
Shouldn't Autoconf determine what needs to be done for large-file support? If you call the AC_SYS_LARGEFILE macro in the configure script, your build will be transparently switched to large-file support by providing the necessary compiler flags (like -D_FILE_OFFSET_BITS=64).
The configure.in script coming with GHC 5.04.3 doesn't seem to make use of this. Maybe adding the macro call is all that is to fixing this problem?
This has come as something of a shock to me: it seems I've been living in a dream world in which off_t was always 64 bits and large files were supported by default :-) The AC_SYS_LARGEFILE macro seems to be a relatively new addition to autoconf (i.e. not in 2.13), but I'll see what I can do about enabling large file support in GHC. Cheers, Simon
participants (1)
-
Simon Marlow