]> git.ipfire.org Git - thirdparty/krb5.git/commit
Add MACOS_FRAMEWORK to static link flags master
authorGeorge Chow <george@overcoil.com>
Thu, 18 Jun 2026 18:40:36 +0000 (11:40 -0700)
committerGreg Hudson <ghudson@mit.edu>
Wed, 15 Jul 2026 21:15:09 +0000 (17:15 -0400)
commit9a27137bfa04f9ae79b19cce7cdb05680dfe844e
tree205fca615f9e4a379c0305a99a10707b2f4826c4
parentbd837781fda5fe47efcec2049eea2736d22edf01
Add MACOS_FRAMEWORK to static link flags

When building statically on macOS, the CoreFoundation and Security
frameworks required by krb5 are not propagated to consumers via
pkg-config or the Makefile link variables.  This causes linker failures
when an application links against the static krb5 libraries without
separately specifying the framework flags.

Add @MACOS_FRAMEWORK@ to Libs.private in mit-krb5.pc.in, so pkg-config
--static exposes it, and to KRB5_BASE_LIBS in config/pre.in, so the
build system includes it when linking executables against the static
libraries.
src/build-tools/mit-krb5.pc.in
src/config/pre.in