Makefile.libcompat: Tweak krb5 compat dirs

krb5/util contains both programs and libraries; trying to build that
for compat confuses bsd.prog.mk and results in unwanted files being
created in the source tree.  Remove krb5/util and instead list only
the directories underneath krb5/util which contain libraries.

The libdata change from the diff isn't included; that will be fixed
in a different way.

Fixes:		fb13ae28b2 ("Makefile.libcompat: Add krb5/util")
Reviewed by:	ngie (previous version)
Differential Revision:	https://reviews.freebsd.org/D51937
This commit is contained in:
Lexi Winter 2025-08-17 02:19:21 +01:00
parent 31ac42b486
commit c6778f3a44

View file

@ -93,7 +93,11 @@ _LC_LIBDIRS.${MK_CDDL:tl}+= cddl/lib
_LC_LIBDIRS.${MK_CRYPT:tl}+= secure/lib
.if ${MK_MITKRB5} != "no"
_LC_LIBDIRS.${MK_KERBEROS:tl}+= krb5/lib
_LC_LIBDIRS.${MK_KERBEROS:tl}+= krb5/util
# Only include the parts of krb5/util that build libraries, not executables.
_LC_LIBDIRS.${MK_KERBEROS:tl}+= krb5/util/et
_LC_LIBDIRS.${MK_KERBEROS:tl}+= krb5/util/profile
_LC_LIBDIRS.${MK_KERBEROS:tl}+= krb5/util/support
_LC_LIBDIRS.${MK_KERBEROS:tl}+= krb5/util/verto
.else
_LC_LIBDIRS.${MK_KERBEROS:tl}+= kerberos5/lib
.endif