svn commit: r435961 - in head/www/webkit-gtk2: . files

Alexey Dokuchaev danfe at FreeBSD.org
Sun Mar 12 12:26:34 UTC 2017


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


More information about the freebsd-gnome mailing list