Public bug reported:

krb5-config --libs is leaking some compiler specific flags that we
define in Ubuntu:

$ krb5-config --libs 
-L/usr/lib/x86_64-linux-gnu/mit-krb5 -Wl,-Bsymbolic-functions -flto=auto 
-ffat-lto-objects -flto=auto -Wl,-z,relro -lkrb5 -lk5crypto -lcom_err

That ones that concern me more specifically are:
- -Wl,-Bsymbolic-functions
- -lto related ones

I'm unsure if -Wl,-z,relro should be there either.

It looks like LDFLAGS got mixed with LIBS. pkg-config's output is
different and only contains the libraries and library path:

$ pkg-config --libs krb5
-L/usr/lib/x86_64-linux-gnu/mit-krb5 -lkrb5 -lk5crypto -lcom_err

** Affects: krb5 (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/1970979

Title:
  compiler flags leaking through krb5-config --libs

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


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

Reply via email to