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

Dan Kegel dank at kegel.com
Wed Mar 16 14:39:16 UTC 2016


** Package changed: ubuntu => gnutls26 (Ubuntu)

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

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

Status in gnutls26 package in Ubuntu:
  New

Bug description:
  $ 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

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



More information about the foundations-bugs mailing list