perl: perlmod: append _LARGEFILE64_SOURCE flag for 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>
This commit is contained in:
Tianling Shen 2023-05-19 21:03:09 +08:00 committed by Tianling Shen
parent 61106a8df2
commit b9481f55d8
1 changed files with 3 additions and 0 deletions

View 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)