This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] AC_SYS_LARGEFILE
On Tue, 03 Nov 2009 17:54:47 +0100, Tom Tromey wrote:
> >>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:
>
> Joel> This macro ran a bell, and I found:
> Joel> http://www.sourceware.org/ml/binutils/2008-11/msg00248.html
>
> Joel> Basically, we cannot use AC_SYS_LARGEFILE on Solaris. The little
> Joel> piece of code that I wrote to disable it on solaris-native should
> Joel> work well in this case too.
>
> libiberty uses AC_SYS_LARGEFILE without any Solaris-specific code. Why
> does that work?
Because the Solaris exception is required only for bfd/ and libiberty has no
ABI dependencies related to the largefile support. bfd/ interface has such
ABI dependencies (at least `struct stat' of bfd_stat()).
http://gcc.gnu.org/ml/gcc-patches/2009-11/msg00289.html
> If this code is still needed, then let me suggest the more painful but
> also nicer approach of a new .m4 file in config/.
There is now config/largefile.m4.
This mail thread is now closed by the checked-in ACX_LARGEFILE macro usage:
http://sourceware.org/ml/gdb-cvs/2009-11/msg00079.html
Regards,
Jan