Re: Adding external library dependencies to .pc files for static linking

Chris Hecker <[email protected]> Thu, 29 Feb 2024 09:17:32 -0800
Newsgroups gmane.comp.encryption.kerberos.devel
Message-ID <CAOdMLc3_KL76u957D=TS6b6kO3jgU=nGfoqx3=kW1qfnBNwWjg@mail.gmail.com>
I have been building it static for years, so yes I would be very interested
to hear about your weird and sneaky problem details!

Chris


On Thu, Feb 29, 2024 at 05:34 Ken Hornstein via krbdev <[email protected]>
wrote:

> >When building static krb5 libraries --with-keyutils, mit-krb5.pc will
> >not contain any references to keyutils. This makes linking statically
> >against krb5 fail when relying on pkg-config to provide the linker flags.
> >[...]
>
> I have to caution you that building static Kerberos libraries is (as
> I understand it) not officially supported, and I personally ran into
> a very sneaky and weird problem that caused some Kerberos programs to
> start crashing where the ultimate problem was due to the use of static
> libraries (I can go into details if people are interested).  This
> was admittedly a bit of a corner case that you may not encounter but
> it is something worth thinking carefully about.
>
> --Ken
> _______________________________________________
> krbdev mailing list             [email protected]
> https://mailman.mit.edu/mailman/listinfo/krbdev
>
_______________________________________________
krbdev mailing list             [email protected]
https://mailman.mit.edu/mailman/listinfo/krbdev