From 85bf0627b16d741f847427b922c63da935f6b059 Mon Sep 17 00:00:00 2001 From: Michael Heimpold Date: Mon, 15 May 2023 08:32:28 +0200 Subject: [PATCH] php8: fix compilation with musl 1.2.4 As noted in the release notes of musl 1.2.4, we can use CFLAGS to pass -D_LARGEFILE64_SOURCE to allow to keep using LFS64 definitions (as a short-term solution). Signed-off-by: Michael Heimpold --- lang/php8/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lang/php8/Makefile b/lang/php8/Makefile index 6e75554b6e..a17c0e4770 100644 --- a/lang/php8/Makefile +++ b/lang/php8/Makefile @@ -194,6 +194,9 @@ CONFIGURE_ARGS+= \ ifeq ($(CONFIG_LIBC_USE_GLIBC),y) TARGET_LDFLAGS += -ldl endif +ifeq ($(CONFIG_USE_MUSL),y) +TARGET_CFLAGS += -D_LARGEFILE64_SOURCE +endif ifneq ($(SDK)$(CONFIG_PACKAGE_php8-mod-bcmath),) CONFIGURE_ARGS+= --enable-bcmath=shared -- 2.30.2