9ab69b00fd
Stack protector has been added in version 3.0.3 by
2268c27754
However, some compilers could missed the needed library (-lssp or
-lssp_nonshared) at linking step so use ax_check_link_flag instead of
ax_check_compile_flag
Fixes:
- http://autobuild.buildroot.org/results/0b90e7dca2984652842832a41abad93ac49a9b86
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# lxc
|
|
#
|
|
################################################################################
|
|
|
|
LXC_VERSION = 3.0.3
|
|
LXC_SITE = https://linuxcontainers.org/downloads/lxc
|
|
LXC_LICENSE = LGPL-2.1+
|
|
LXC_LICENSE_FILES = COPYING
|
|
LXC_DEPENDENCIES = host-pkgconf
|
|
LXC_INSTALL_STAGING = YES
|
|
# We're patching configure.ac
|
|
LXC_AUTORECONF = YES
|
|
|
|
LXC_CONF_OPTS = --disable-apparmor --with-distro=buildroot \
|
|
--disable-werror \
|
|
$(if $(BR2_PACKAGE_BASH),,--disable-bash)
|
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
LXC_CONF_OPTS += --enable-gnutls
|
|
LXC_DEPENDENCIES += gnutls
|
|
else
|
|
LXC_CONF_OPTS += --disable-gnutls
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
LXC_CONF_OPTS += --enable-capabilities
|
|
LXC_DEPENDENCIES += libcap
|
|
else
|
|
LXC_CONF_OPTS += --disable-capabilities
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
|
|
LXC_CONF_OPTS += --enable-seccomp
|
|
LXC_DEPENDENCIES += libseccomp
|
|
else
|
|
LXC_CONF_OPTS += --disable-seccomp
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
|
LXC_CONF_OPTS += --enable-selinux
|
|
LXC_DEPENDENCIES += libselinux
|
|
else
|
|
LXC_CONF_OPTS += --disable-selinux
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|