mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-05 03:13:41 +08:00
56d9b88768
Add gcc >= 5 dependency because __builtin_add_overflow is
unconditionally used since
0744fa4f53
https://github.com/SELinuxProject/selinux/releases/tag/3.3
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
54 lines
1.5 KiB
Makefile
54 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# libsepol
|
|
#
|
|
################################################################################
|
|
|
|
LIBSEPOL_VERSION = 3.3
|
|
LIBSEPOL_SITE = https://github.com/SELinuxProject/selinux/releases/download/$(LIBSEPOL_VERSION)
|
|
LIBSEPOL_LICENSE = LGPL-2.1+
|
|
LIBSEPOL_LICENSE_FILES = COPYING
|
|
LIBSEPOL_CPE_ID_VENDOR = selinuxproject
|
|
|
|
LIBSEPOL_INSTALL_STAGING = YES
|
|
LIBSEPOL_DEPENDENCIES = host-flex
|
|
HOST_LIBSEPOL_DEPENDENCIES = $(BR2_COREUTILS_HOST_DEPENDENCY) host-flex
|
|
|
|
LIBSEPOL_MAKE_FLAGS = $(TARGET_CONFIGURE_OPTS)
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
LIBSEPOL_MAKE_FLAGS += STATIC=1
|
|
endif
|
|
|
|
define LIBSEPOL_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSEPOL_MAKE_FLAGS)
|
|
endef
|
|
|
|
# Set SHLIBDIR to /usr/lib so it has the same value than LIBDIR, as a result
|
|
# we won't have to use a relative path in 0002-revert-ln-relative.patch
|
|
define LIBSEPOL_INSTALL_STAGING_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install $(LIBSEPOL_MAKE_FLAGS) \
|
|
DESTDIR=$(STAGING_DIR) SHLIBDIR=/usr/lib
|
|
endef
|
|
|
|
define LIBSEPOL_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install $(LIBSEPOL_MAKE_FLAGS) \
|
|
DESTDIR=$(TARGET_DIR) SHLIBDIR=/usr/lib
|
|
endef
|
|
|
|
HOST_LIBSEPOL_MAKE_ENV = \
|
|
$(HOST_MAKE_ENV) \
|
|
PREFIX=$(HOST_DIR) \
|
|
SHLIBDIR=$(HOST_DIR)/lib
|
|
|
|
define HOST_LIBSEPOL_BUILD_CMDS
|
|
$(HOST_LIBSEPOL_MAKE_ENV) $(MAKE) -C $(@D) $(HOST_CONFIGURE_OPTS)
|
|
endef
|
|
|
|
define HOST_LIBSEPOL_INSTALL_CMDS
|
|
$(HOST_LIBSEPOL_MAKE_ENV) $(MAKE) -C $(@D) install $(HOST_CONFIGURE_OPTS)
|
|
endef
|
|
|
|
$(eval $(generic-package))
|
|
$(eval $(host-generic-package))
|