perl: perlmod: append _LARGEFILE64_SOURCE flag for musl 1.2.4
authorTianling Shen <[email protected]>
Fri, 19 May 2023 13:03:09 +0000 (21:03 +0800)
committerTianling Shen <[email protected]>
Sat, 20 May 2023 05:05:19 +0000 (13:05 +0800)
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 <[email protected]>
lang/perl/perlmod.mk

index 5a91c23a5a473120bc279d696b85fc0c107374ce..db83d603d0f1a58d096758cca5f6a4e0424ec62c 100644 (file)
@@ -25,6 +25,9 @@ MOD_CFLAGS_PERL:=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(TARGET_CFLAGS) $(T
 ifdef CONFIG_PERL_THREADS
        MOD_CFLAGS_PERL+= -D_REENTRANT -D_GNU_SOURCE
 endif
+ifdef CONFIG_USE_MUSL
+       MOD_CFLAGS_PERL+= -D_LARGEFILE64_SOURCE
+endif
 
 # Module install prefix
 PERL_SITELIB:=/usr/lib/perl5/$(PERL_VERSION)