config BR2_PACKAGE_LXC
	bool "lxc"
	depends on BR2_TOOLCHAIN_HAS_THREADS
	depends on BR2_USE_MMU # fork()
	# build system forcefully builds a shared library
	depends on !BR2_STATIC_LIBS
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # C++11
	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 # setns() system call
	depends on !BR2_TOOLCHAIN_USES_UCLIBC # no fexecve
	help
	  Linux Containers (LXC), provides the ability to group and
	  isolate of a set of processes in a jail by virtualizing and
	  accounting the kernel resources. It is similar to
	  Linux-Vserver or Openvz.

	  https://linuxcontainers.org/

comment "lxc needs a glibc or musl toolchain w/ threads, headers >= 3.0, dynamic library, gcc >= 4.7"
	depends on BR2_USE_MMU
	depends on !BR2_TOOLCHAIN_HAS_THREADS \
		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 \
		|| !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 \
		|| BR2_STATIC_LIBS \
		|| BR2_TOOLCHAN_USES_UCLIBC
