[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Inconsistency between ftoption.h and generated binary
From: |
Werner LEMBERG |
Subject: |
Re: [ft] Inconsistency between ftoption.h and generated binary |
Date: |
Sun, 30 Jul 2017 08:43:07 +0200 (CEST) |
> After compilation, I observed that the resultant freetype binary
> links to png, zlib and bzip2: [...]
>
> However, if I look at the corresponding ftoption.h, the options for
> system zlib, png and zlib2 are commented out, leading to an
> inconsistency.
Indeed. Please open a bug tracker issue.
> I build libraries that link in freetype and I (thought I could) rely
> on the macros in ftoption.h to determine how the freetype was
> configured (for the purposes of linking zlib etc when linking to the
> static library).
Is there a reason you can't use `freetype-config' or `freetype.pc'?
Both solutions can report the necessary static libraries:
freetype-config --static --libs
pkg-config --static --libs freetype2
Werner