autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Library that needs large file support


From: Bob Friesenhahn
Subject: Re: Library that needs large file support
Date: Sun, 21 Dec 2003 17:03:56 -0600 (CST)

On Sun, 21 Dec 2003, Guido Draheim wrote:
> >
> > My configure script needs to have access to the values that
> > AC_SYS_LARGEFILE sets since including config.h is not sufficient for
> > all applications.  Sometimes the options *must* be specified on the
> > compiler command line to work.  Therefore I augment AC_SYS_LARGEFILE
> > as follows in order to define a LFS_CPPFLAGS variable which may be
> > used within the Makefile:
>
> Can you specify why? I am always interested in additional info that
> needs to be put at http://ac-archive.sf.net/largefile/ atleast for
> a warning. Some `gcc -include xx`? Some aix magic `-Llib64`?

In order to work properly, _FILE_OFFSET_BITS=64 must be defined before
any system header is included.  For Perl extensions, the fragment of
code the extension writer has control over (the ".xs" file) is
processed by Perl so that it is wrapped by other C code which includes
system headers. If there is a way to prepend user code to the part
Perl generates, I am not aware of it.  This means that it is necessary
to add -D_FILE_OFFSET_BITS=64 to the compilation options.

Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen





reply via email to

[Prev in Thread] Current Thread [Next in Thread]