config BR2_PACKAGE_LIBNSS
	bool "libnss"
	depends on BR2_TOOLCHAIN_HAS_THREADS # libnspr
	depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT # libnspr
	depends on !BR2_STATIC_LIBS
	select BR2_PACKAGE_LIBNSPR
	select BR2_PACKAGE_SQLITE
	select BR2_PACKAGE_ZLIB
	help
	  Network Security Services (NSS) is a set of libraries designed
	  to support development of security-enabled client and server
	  applications. Applications built with NSS can support SSL v2
	  and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME,
	  and X.509 v3 certificates.

	  http://www.mozilla.org/projects/security/pki/nss/

if BR2_PACKAGE_LIBNSS

config BR2_PACKAGE_LIBNSS_ARCH
	string
	default "aarch64" if BR2_aarch64_be
	default "ppc"     if BR2_powerpc
	default "ppc64"   if BR2_powerpc64
	default "ppc64le" if BR2_powerpc64le
	default BR2_ARCH

endif

comment "libnss needs a toolchain w/ threads, dynamic library"
	depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
