1config BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
2	bool
3	default y
4	# libbsd does not support those architectures (see src/local-elf.h)
5	depends on !BR2_microblaze
6	depends on !BR2_arc
7	depends on !BR2_xtensa
8
9config BR2_PACKAGE_LIBBSD
10	bool "libbsd"
11	depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
12	depends on !BR2_STATIC_LIBS
13	depends on BR2_TOOLCHAIN_HAS_THREADS
14	depends on BR2_USE_WCHAR
15	select BR2_PACKAGE_LIBMD
16	help
17	  This library provides useful functions commonly found on BSD
18	  systems, and lacking on others like GNU systems, thus making
19	  it easier to port projects with strong BSD origins, without
20	  needing to embed the same code over and over again on each
21	  project.
22
23	  http://libbsd.freedesktop.org/
24
25comment "libbsd needs a toolchain w/ dynamic library, threads, wchar"
26	depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
27	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || \
28		!BR2_USE_WCHAR
29