Files
buildroot/package/libnfs/libnfs.mk
Bernd Kuhls 2e6c4f0888 package/libnfs: fix build without libkrb5
Buildroot commit a035a0f99f bumped the
package to 6.0.2 which includes upstream commit
e806051f40
that adds optional support for libkrb5, enabled by default.

When building without libkrb5 we need to disable its support to avoid
a configure error:

  configure: Build with gssapi_krb5 support
  checking for gssapi/gssapi.h... no
  configure: error: You need gssapi development files to compile libsmb2.

Fixes:
https://autobuild.buildroot.net/results/166/166fb283ef8830930ce191b4418d01e6c82176f5/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Julien Olivain <ju.o@free.fr>
2026-03-07 11:33:44 +01:00

37 lines
979 B
Makefile

################################################################################
#
# libnfs
#
################################################################################
LIBNFS_VERSION = 6.0.2
LIBNFS_SITE = $(call github,sahlberg,libnfs,libnfs-$(LIBNFS_VERSION))
LIBNFS_INSTALL_STAGING = YES
LIBNFS_AUTORECONF = YES
LIBNFS_LICENSE = LGPL-2.1+ (library), BSD-2-Clause (protocol, .x files), GPL-3.0+ (examples)
LIBNFS_LICENSE_FILES = COPYING LICENCE-BSD.txt LICENCE-LGPL-2.1.txt LICENCE-GPL-3.txt
LIBNFS_DEPENDENCIES = host-pkgconf
ifeq ($(BR2_PACKAGE_GNUTLS),y)
LIBNFS_DEPENDENCIES += gnutls
endif
ifeq ($(BR2_PACKAGE_LIBKRB5),y)
LIBNFS_CONF_OPTS += --with-libkrb5
LIBNFS_DEPENDENCIES += libkrb5
else
LIBNFS_CONF_OPTS += --without-libkrb5
endif
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
LIBNFS_DEPENDENCIES += libtirpc
endif
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
LIBNFS_CONF_OPTS += --enable-pthread
else
LIBNFS_CONF_OPTS += --disable-pthread
endif
$(eval $(autotools-package))