git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Shawn O. Pearce <spearce@spearce.org>
Date
Feb 17, 2007, 09:49 UTC
Message-ID
<20070217094959.GH27864@spearce.org>
In-Reply-To
<20070217093953.GE21842@admingilde.org>
Martin Waitz <tali@admingilde.org> wrote:
Show 7 quoted lines
> 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.
Previous: Martin WaitzNext: Martin Waitz
Message 3 of 6 in “Support for large files on 32bit systems.”
  1. Support for large files on 32bit systems.Martin Waitz, Feb 17, 2007
  2. Martin WaitzFeb 17, 2007
  3. Shawn O. PearceFeb 17, 2007
  4. Martin WaitzFeb 17, 2007
  5. Nicolas PitreFeb 17, 2007
  6. Junio C HamanoFeb 19, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.