Re: [PATCH] Support for large files on 32bit systems.

From: Shawn O. Pearce <spearce@spearce.org>
Date: 2007-02-17 20:49:59
Martin Waitz <tali@admingilde.org> wrote:
> arg, this patch is completely broken.
> I tested it by setting the macro via the command line and the
> = is still left in there.  And __GLIBC__ is not yet defined at this
> point.
> 
> However, we need to set _FILE_OFFSET_BITS for glibc somehow.
> What is the best way to do so?

I think the only way to do with this is to have the Makefile detect
if -D_FILE_OFFSET_BITS=64 is required to be added to CFLAGS based on
some rule (e.g. uname output?), then add that to CFLAGS when needed.

This is one area where autoconf is nice, as you can compile
a thousand little C programs to see how the compiler reacts by
default, and when you attempt to set this define, and then decide
if you should include it or not.

It is also the part of autoconf that's not-so-nice... as it compiles
a thousand little C programs just to figure out how to compile the
real program.  ;-)

-- 
Shawn.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sat Feb 17 20:50:45 2007

This archive was generated by hypermail 2.1.8 : 2007-02-17 20:52:44 EST