svn commit: r362304 - head/x11-toolkits/pango

John Marino freebsd.contact at marino.st
Sun Jul 20 22:23:17 UTC 2014


On 7/21/2014 00:18, Baptiste Daroussin wrote:
> On Mon, Jul 21, 2014 at 12:12:08AM +0200, John Marino wrote:
>> Don't bother with headers.
>>
>>> readelf -d /usr/local/lib/libpango-1.0.so
>>
>> libm is listed as a required shared library, plain as day.
>> for non-explicit linking the linker will pick all those up.  For
>> explicit linking, they have to be passed to the linker.
> 
> Anything linking to libpango will not have to link with libm because of that,
> that just mean that libpango itself needs to load the libm.so when being loaded
> 
> final binary linking to libpango only needs explicit link to libm only if pango
> headers make the binary to use directly libm symbols which is not the case here.
> 

yes it is the case here.
It uses ceil or floor or sqrt or some other common math function.

All this change did is add a configure argument.  How the .pc get built
is done by the pango configure & makefile.  It's not a dragonfly thing.
 If pango pc gets -lm due to this configure argument, it's because pango
knows that it's needed when explicit linking is required.

Right?

John


More information about the svn-ports-head mailing list