Re: [dev] [st] font fallback

From: Christoph Lohmann <20h_AT_r-36.net>
Date: Sun, 06 Jan 2013 14:51:43 +0100

Greetings.

On Sun, 06 Jan 2013 14:51:43 +0100 Charlie Kester <corky1951_AT_comcast.net> wrote:
> Interesting. I get much a much bigger executable with the latest git.
>
> So I dug a little deeper and the problem seems to occur when pkg-config
> adds -lfreetype to the linker flags.
>
> Omitting that linker flag gets me a 85k binary after stripping, fwiw.
>
> It seems to run OK too. Do I really need to explicitly link to the
> freetype library? I don't see any complaints from the linker about
> unresolved symbols...
>
> ldd reports that my copy of st built without -lfreetype is using
> libfreetype.so.6.
>
> So it seems that something is already pulling it in.
>
> Hmm. I wonder if I was somehow linking to the static version of the
> freetype library? That might explain the font-related stuff I found in
> the .rodata section, and maybe the .eh_frame* stuff too.

Does freetype appear in the ldd(1) output? Does it appear when you leave
out ‐lfreetype?

The pkg‐config dance was added to make st compile on OS X. Some OS X in‐
fidels sent me 80 female virgins I could sacrifice. That’s how you sup‐
port open source.


Sincerely,

Christoph Lohmann
Received on Sun Jan 06 2013 - 14:51:43 CET

This archive was generated by hypermail 2.3.0 : Sun Jan 06 2013 - 15:00:05 CET