[HarfBuzz] harfbuzz.pc and static linking

Behdad Esfahbod behdad at behdad.org
Tue Aug 18 08:05:30 PDT 2015


I disabled the FreeType dependency for now.  Will re-enable in a year or two.
 Was too lazy to file a bug against Ubuntu 14.04 re shipping ancient pkg-config...

On 15-08-14 08:32 AM, Werner LEMBERG wrote:
> 
>>>>> Should be fixed in master.  On my machine pkg-config crashes if
>>>>> I specify --static.  Please test.
> 
> For me it works, thanks!
> 
>>> Oh, I suppose it doesn't like the recursive dependency between
>>> HarfBuzz and FreeType...  You'd think pkg-config knows how to deal
>>> with circular deps.  Looks like not.  Do others know about this?
>>
>> Looks like it *should* handle it.  But isn't for me.  Anyone have
>> any insight into this?
> 
> After installation the current git of harfbuzz, I get
> 
>   $ pkg-config --libs harfbuzz
>   -L/usr/local/lib -lharfbuzz
> 
>   $ pkg-config --libs --static harfbuzz
>   -L/usr/local/lib -lharfbuzz -lglib-2.0 \
>     -pthread -lpcre -pthread -lfreetype -lz -lbz2 -lpng12 -lz -lm
> 
>   $ pkg-config --libs --static freetype2
>   -L/usr/local/lib -lfreetype -lz -lbz2 -lpng12 -lz -lm \
>     -lharfbuzz -lglib-2.0 -pthread -lpcre -pthread 
> 
> This is a self-compiled version of pkg-config's current git.
> 
> Note, however, that my openSuSE 13.2's pkg-config version 0.28-7.1.2
> works, too.
> 
> 
>     Werner
> 

-- 
behdad
http://behdad.org/


More information about the HarfBuzz mailing list