Date: Mon, 21 Jul 2014 00:22:42 +0200 From: John Marino <freebsd.contact@marino.st> To: Baptiste Daroussin <bapt@FreeBSD.org>, marino@freebsd.org Cc: svn-ports-head@freebsd.org, kwm@FreeBSD.org, Tijl Coosemans <tijl@FreeBSD.org>, svn-ports-all@freebsd.org, ports-committers@freebsd.org Subject: Re: svn commit: r362304 - head/x11-toolkits/pango Message-ID: <53CC4132.9030508@marino.st> In-Reply-To: <20140720221809.GA51456@ivaldir.etoilebsd.net> References: <201407200815.s6K8FG8b003096@svn.freebsd.org> <20140720132259.156d687e@kalimero.tijl.coosemans.org> <53CBA770.2010409@marino.st> <20140720113124.GD26778@ivaldir.etoilebsd.net> <20140720165256.1f4d5d07@kalimero.tijl.coosemans.org> <53CBF2D7.4070005@marino.st> <20140720220612.GH26778@ivaldir.etoilebsd.net> <53CC3EB8.6070802@marino.st> <20140720221809.GA51456@ivaldir.etoilebsd.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53CC4132.9030508>