c383856268
lua and python bindings were removed with the same patch: https://patchwork.ozlabs.org/patch/367361. There is a real issue with python but not with lua so enable it if lua is selected Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com> [Thomas: simplify value passed to --with-lua-pc.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
35 lines
927 B
Makefile
35 lines
927 B
Makefile
################################################################################
|
|
#
|
|
# lxc
|
|
#
|
|
################################################################################
|
|
|
|
LXC_VERSION = 2.0.6
|
|
LXC_SITE = https://linuxcontainers.org/downloads/lxc
|
|
LXC_LICENSE = LGPLv2.1+
|
|
LXC_LICENSE_FILES = COPYING
|
|
LXC_DEPENDENCIES = libcap host-pkgconf
|
|
LXC_CONF_OPTS = --disable-apparmor --with-distro=buildroot \
|
|
--disable-python --disable-werror \
|
|
$(if $(BR2_PACKAGE_BASH),,--disable-bash)
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
|
|
LXC_CONF_OPTS += --enable-seccomp
|
|
LXC_DEPENDENCIES += libseccomp
|
|
else
|
|
LXC_CONF_OPTS += --disable-seccomp
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LUAINTERPRETER),y)
|
|
LXC_CONF_OPTS += --enable-lua
|
|
LXC_DEPENDENCIES += luainterpreter
|
|
ifeq ($(BR2_PACKAGE_LUAJIT),y)
|
|
# By default, lxc will only search for lua.pc
|
|
LXC_CONF_OPTS += --with-lua-pc=luajit
|
|
endif
|
|
else
|
|
LXC_CONF_OPTS += --disable-lua
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|