From: James Hilliard Date: Sun, 18 Jul 2021 20:44:05 +0000 (-0600) Subject: package/libtirpc: Add optional GSSAPI support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ddd9e723c3ef6f8eb26a5eafd7d8a504b56059f2;p=buildroot.git package/libtirpc: Add optional GSSAPI support Signed-off-by: James Hilliard Reviewed-by: Petr Vorel Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- diff --git a/package/libtirpc/Config.in b/package/libtirpc/Config.in index 2e9c939fa8..1899edefbf 100644 --- a/package/libtirpc/Config.in +++ b/package/libtirpc/Config.in @@ -7,5 +7,13 @@ config BR2_PACKAGE_LIBTIRPC http://sourceforge.net/projects/libtirpc/ +config BR2_PACKAGE_LIBTIRPC_GSS + bool "gss" + depends on BR2_USE_MMU # libkrb5 + depends on BR2_PACKAGE_LIBTIRPC + select BR2_PACKAGE_LIBKRB5 + help + Enable GSSAPI support + comment "libtirpc needs a toolchain w/ threads" depends on !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/libtirpc/libtirpc.mk b/package/libtirpc/libtirpc.mk index 46b74cae8e..9d3c4b5a94 100644 --- a/package/libtirpc/libtirpc.mk +++ b/package/libtirpc/libtirpc.mk @@ -16,7 +16,13 @@ LIBTIRPC_INSTALL_STAGING = YES # getrpcby{number,name} are only provided if 'GQ' is defined LIBTIRPC_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -DGQ" -LIBTIRPC_CONF_OPTS = --disable-gssapi +ifeq ($(BR2_PACKAGE_LIBTIRPC_GSS),y) +LIBTIRPC_CONF_ENV += KRB5_CONFIG=$(STAGING_DIR)/usr/bin/krb5-config +LIBTIRPC_CONF_OPTS += --enable-gssapi +LIBTIRPC_DEPENDENCIES += libkrb5 +else +LIBTIRPC_CONF_OPTS += --disable-gssapi +endif HOST_LIBTIRPC_CONF_OPTS = --disable-gssapi $(eval $(autotools-package))