php8: fix compilation with musl 1.2.4
authorMichael Heimpold <mhei@heimpold.de>
Mon, 15 May 2023 06:32:28 +0000 (08:32 +0200)
committerTianling Shen <cnsztl@gmail.com>
Thu, 18 May 2023 16:00:34 +0000 (00:00 +0800)
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 <mhei@heimpold.de>
lang/php8/Makefile

index 6e75554b6ee4e1e992dd717fcef48c08b8722225..a17c0e477023dc72f02046f7600f7f812f2f9963 100644 (file)
@@ -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