compiler flags leaking through krb5-config --libs

Bug #1970979 reported by Andreas Hasenack
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
krb5 (Ubuntu)
Triaged
Undecided
Unassigned

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

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Post in the upstream mailing list, let's see if this spawns a discussion:

https://mailman.mit.edu/pipermail/krbdev/2022-April/013543.html

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

I'm marking this bug as Triaged and subscribing ubuntu-server to it just to follow our triaging procedure.

Changed in krb5 (Ubuntu):
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.