From owner-svn-ports-head@FreeBSD.ORG Sun Jul 20 22:23:17 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 430232D5; Sun, 20 Jul 2014 22:23:17 +0000 (UTC) Received: from shepard.synsport.net (mail.synsport.com [208.69.230.148]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 83C2622F5; Sun, 20 Jul 2014 22:23:16 +0000 (UTC) Received: from [192.168.0.22] (unknown [130.255.19.191]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by shepard.synsport.net (Postfix) with ESMTP id D9F3843BA1; Sun, 20 Jul 2014 17:22:58 -0500 (CDT) Message-ID: <53CC4132.9030508@marino.st> Date: Mon, 21 Jul 2014 00:22:42 +0200 From: John Marino Reply-To: marino@freebsd.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Baptiste Daroussin , marino@freebsd.org Subject: Re: svn commit: r362304 - head/x11-toolkits/pango 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> In-Reply-To: <20140720221809.GA51456@ivaldir.etoilebsd.net> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: svn-ports-head@freebsd.org, kwm@FreeBSD.org, Tijl Coosemans , svn-ports-all@freebsd.org, ports-committers@freebsd.org X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2014 22:23:17 -0000 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