diff options
| author | Tianling Shen <cnsztl@immortalwrt.org> | 2023-05-19 21:45:21 +0800 |
|---|---|---|
| committer | Tianling Shen <cnsztl@gmail.com> | 2023-05-20 13:07:15 +0800 |
| commit | 577679a5728a17cc6633c4c5cd223d48ab7c3624 (patch) | |
| tree | db3fede0fb726fcfcf5eb17f03cac4aacb30a65e /lang/python/python3-libselinux/Makefile | |
| parent | 3b14d2569864a221c0e44610406ef73b045eb854 (diff) | |
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>
Diffstat (limited to 'lang/python/python3-libselinux/Makefile')
| -rw-r--r-- | lang/python/python3-libselinux/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/python/python3-libselinux/Makefile b/lang/python/python3-libselinux/Makefile index 95cb2a813..f56483b44 100644 --- a/lang/python/python3-libselinux/Makefile +++ b/lang/python/python3-libselinux/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk SRC_NAME:=libselinux PKG_NAME:=python3-$(SRC_NAME) PKG_VERSION:=3.3 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_BUILD_DIR:=$(BUILD_DIR)/python-libselinux/$(SRC_NAME)-$(PKG_VERSION) 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. endef +ifneq ($(CONFIG_USE_MUSL),) + TARGET_CFLAGS += -D_LARGEFILE64_SOURCE +endif + MAKE_FLAGS += \ FTS_LDLIBS=-lfts \ SHLIBDIR=/usr/lib \ |
