freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] LFS support in builds/unix/ftsystem.c


From: Kenny Simpson
Subject: Re: [ft-devel] LFS support in builds/unix/ftsystem.c
Date: Sat, 21 Dec 2013 15:07:11 -0500

Sorry for the delay... I looked into the autoconf stuff, but I got lost with the build system in freetype.
I see a jamfile, Makefile, CMakeList, etc... so I'm a bit lost as to which one(s) to care about.

One other thing I noticed was open+fcntl to set cloexec.  Would you be open to the use of #ifdef O_CLOEXEC in the file to use it if present, otherwise fall back to the existing fcntl() path?

-Kenny


On Sat, Nov 23, 2013 at 3:21 AM, Werner LEMBERG <address@hidden> wrote:

> Its been a while since I've fought with LFS issues and had thought
> them a thing of the past... let me know if there is an approved way
> to add this fix to freetype.

It would be great if you find some time to work on this.  I must admit
that I know the LFS acronym, but that's it :-)

For FreeType's Unix support, I suggest the following route:

  . Use the `AC_SYS_LARGEFILE' autoconf macro (in `configure.raw') to
    get the necessary compiler flags and macro definitions.

  . Use the `_LARGE_FILES' and `_FILE_OFFSET_BITS' macros (defined by
    `AC_SYS_LARGEFILE') where necessary to add new code.

Ideally, I would like to have a generic solution (cf. the
`FT_SIZEOF_INT' stuff in `ftconfig.h'), but I guess that this is not
possible due to the need of setting compiler flags for LFS support...


    Werner


reply via email to

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