Public bug reported:

$ 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: ubuntu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1557836

Title:
  gnutls.pc contains unrecognized command line option -R

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1557836/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to