python3-libselinux: fix compilation with musl 1.2.4
musl 1.2.4 deprecated legacy "LFS64" ("large file support") interfaces so just having _GNU_SOURCE defined is not enough anymore. Manually pass -D_LARGEFILE64_SOURCE to allow to keep using LFS64 definitions. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
3b14d25698
commit
577679a572
1 changed files with 5 additions and 1 deletions
|
@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
||||||
SRC_NAME:=libselinux
|
SRC_NAME:=libselinux
|
||||||
PKG_NAME:=python3-$(SRC_NAME)
|
PKG_NAME:=python3-$(SRC_NAME)
|
||||||
PKG_VERSION:=3.3
|
PKG_VERSION:=3.3
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/python-libselinux/$(SRC_NAME)-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/python-libselinux/$(SRC_NAME)-$(PKG_VERSION)
|
||||||
PKG_SOURCE:=$(SRC_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(SRC_NAME)-$(PKG_VERSION).tar.gz
|
||||||
|
@ -48,6 +48,10 @@ define Package/python3-libselinux/description
|
||||||
This package provides the Python bindings for libselinux.
|
This package provides the Python bindings for libselinux.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
ifneq ($(CONFIG_USE_MUSL),)
|
||||||
|
TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
|
||||||
|
endif
|
||||||
|
|
||||||
MAKE_FLAGS += \
|
MAKE_FLAGS += \
|
||||||
FTS_LDLIBS=-lfts \
|
FTS_LDLIBS=-lfts \
|
||||||
SHLIBDIR=/usr/lib \
|
SHLIBDIR=/usr/lib \
|
||||||
|
|
Loading…
Reference in a new issue