[20479] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

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

daemon@ATHENA.MIT.EDU (Ken Hornstein via krbdev)
Thu Feb 29 08:34:20 2024

Message-Id: <202402291334.41TDY3vq011598@hedwig.cmf.nrl.navy.mil>
To: Wolfgang Walther <walther@technowledgy.de>
cc: krbdev@mit.edu
In-Reply-To: <6c809c13-ae2d-4e6e-ace5-d2862912648c@technowledgy.de>
MIME-Version: 1.0
Date: Thu, 29 Feb 2024 08:34:03 -0500
From: Ken Hornstein via krbdev <krbdev@mit.edu>
Reply-To: Ken Hornstein <kenh@cmf.nrl.navy.mil>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu

>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             krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev

home help back first fref pref prev next nref lref last post