[Bug 1557836] [NEW] gnutls.pc contains unrecognized command line option -R

Launchpad Bug Tracker 1557836 at bugs.launchpad.net
Wed Mar 16 14:39:17 UTC 2016


You have been subscribed to a public bug:

$ pkg-config --libs --static gnutls
-L/usr/lib/x86_64-linux-gnu -lgnutls -lz -R/usr/lib/x86_64-linux-gnu -lp11-kit -lgmp -lhogweed -lgmp -lnettle -ltasn1 -lp11-kit -lz 

$ grep -e -R /usr/lib/x86_64-linux-gnu/pkgconfig/*.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/gnutls.pc:Libs.private: -L/usr/lib/x86_64-linux-gnu -lz -R/usr/lib/x86_64-linux-gnu     -lp11-kit    -lgmp

That -R looks innocent, but it's not.  Libs.private is passed to gcc,
not to ld, so it needs to use -Wl,-rpath... what am I saying, it
shouldn't be passing an rpath at all, should it?

Anyway, the -R has to go, it causes build failure for any app that uses
pkg-config --static --libs gnutls

This bug was not present in ubuntu 12.04, but is present in both ubuntu
14.04 and ubuntu 15.10.

The workaround for affected developers is to ham-fistedly remove the
-R/usr/lib/x86_64-linux-gnu from /usr/lib/x86_64-linux-
gnu/pkgconfig/gnutls.pc

** Affects: gnutls26 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: bot-comment
-- 
gnutls.pc contains unrecognized command line option -R
https://bugs.launchpad.net/bugs/1557836
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to gnutls26 in Ubuntu.



More information about the foundations-bugs mailing list