[openwrt/openwrt] libselinux: fix compilation with musl 1.2.4
LEDE Commits
lede-commits at lists.infradead.org
Mon May 15 11:39:29 PDT 2023
ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/6ff12094cd4789ba992b07eed2237a7ad958eb98
commit 6ff12094cd4789ba992b07eed2237a7ad958eb98
Author: Robert Marko <robimarko at gmail.com>
AuthorDate: Mon May 8 12:47:29 2023 +0200
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.
_LARGEFILE64_SOURCE has to be defined in the source, or CFLAGS can be used
to pass -D_LARGEFILE64_SOURCE to allow to keep using LFS64 definitions.
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
package/libs/libselinux/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/libs/libselinux/Makefile b/package/libs/libselinux/Makefile
index 7246d85566..a794270450 100644
--- a/package/libs/libselinux/Makefile
+++ b/package/libs/libselinux/Makefile
@@ -115,6 +115,7 @@ HOST_MAKE_FLAGS += \
ifeq ($(CONFIG_USE_MUSL),y)
MAKE_FLAGS += FTS_LDLIBS=-lfts
+TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
endif
MAKE_FLAGS += \
More information about the lede-commits
mailing list