Date: Sun, 12 Mar 2017 12:26:33 +0000 From: Alexey Dokuchaev <danfe@FreeBSD.org> To: Matthew Rezny <rezny@freebsd.org> Cc: Adam Weinberger <adamw@adamw.org>, Tijl Coosemans <tijl@freebsd.org>, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org, swills@freebsd.org, gnome@freebsd.org Subject: Re: svn commit: r435961 - in head/www/webkit-gtk2: . files Message-ID: <20170312122633.GB43736@FreeBSD.org> In-Reply-To: <20170312120533.GA43736@FreeBSD.org> References: <201703112115.v2BLF3qk062113@repo.freebsd.org> <1651531.nGg9pBWiG5@workstation.reztek> <96D05335-EC74-4CD0-9F00-95CC02B62CF8@adamw.org> <6528743.Wv2563vc2k@workstation.reztek> <20170312120533.GA43736@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 12, 2017 at 12:05:33PM +0000, Alexey Dokuchaev wrote: > On Sun, Mar 12, 2017 at 03:10:09AM +0100, Matthew Rezny wrote: > > Many ports that use gnutls produce warnings from stage-qa because gnutls > > depends on libgcrypt which depends on libgpg-error, and while I sometime > > see libgcrypt alongside gnutls, I rarely notice libgpg-error alongside > > either, and I find myself frequently adding both. [...] > > > > Should every port using libgcrypt have to depend on libgpg-error when > > libgcrypt already depends on it, or is the stage-qa check over aggressive? > > `Mk/Scripts/qa.sh' is doing what it can: that is, what readelf(1) tells > it. Technically no, not every port using libgcrypt has to depend on > libgpg-error, as long as you link with -lgcrypt only and it's sufficient. > However, libgpg-error is pulled by default via libgcrypt's config script: > > $ /usr/local/bin/libgcrypt-config --libs > -L/usr/local/lib -lgcrypt -lgpg-error > > [...] Another approach is to use -Wl,--as-needed option After checking with Ulrich Drepper's paper [1] looks like lazyman's version of the above with overlinking prevented should be this: -Wl,--as-needed -lgcrypt -lgpg-error -Wl,--no-as-needed One might also find this page [2] useful. ./danfe [1] http://www.akkadia.org/drepper/dsohowto.pdf, p.41 [2] http://wiki.rosalab.ru/ru/index.php/Overlinking
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170312122633.GB43736>