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:
parent
61106a8df2
commit
b9481f55d8
1 changed files with 3 additions and 0 deletions
|
@ -25,6 +25,9 @@ MOD_CFLAGS_PERL:=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(TARGET_CFLAGS) $(T
|
||||||
ifdef CONFIG_PERL_THREADS
|
ifdef CONFIG_PERL_THREADS
|
||||||
MOD_CFLAGS_PERL+= -D_REENTRANT -D_GNU_SOURCE
|
MOD_CFLAGS_PERL+= -D_REENTRANT -D_GNU_SOURCE
|
||||||
endif
|
endif
|
||||||
|
ifdef CONFIG_USE_MUSL
|
||||||
|
MOD_CFLAGS_PERL+= -D_LARGEFILE64_SOURCE
|
||||||
|
endif
|
||||||
|
|
||||||
# Module install prefix
|
# Module install prefix
|
||||||
PERL_SITELIB:=/usr/lib/perl5/$(PERL_VERSION)
|
PERL_SITELIB:=/usr/lib/perl5/$(PERL_VERSION)
|
||||||
|
|
Loading…
Reference in a new issue