[Bug 1970979] Re: compiler flags leaking through krb5-config --libs
Andreas Hasenack
1970979 at bugs.launchpad.net
Mon May 2 12:50:57 UTC 2022
Post in the upstream mailing list, let's see if this spawns a
discussion:
https://mailman.mit.edu/pipermail/krbdev/2022-April/013543.html
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to krb5 in Ubuntu.
https://bugs.launchpad.net/bugs/1970979
Title:
compiler flags leaking through krb5-config --libs
Status in krb5 package in Ubuntu:
New
Bug description:
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/krb5/+bug/1970979/+subscriptions
More information about the foundations-bugs
mailing list