[Bug 1970979] [NEW] compiler flags leaking through krb5-config --libs
Andreas Hasenack
1970979 at bugs.launchpad.net
Fri Apr 29 16:31:30 UTC 2022
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
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