diff options
| author | Robert Marko <robimarko@gmail.com> | 2023-05-17 10:18:57 +0200 |
|---|---|---|
| committer | Rosen Penev <rosenp@gmail.com> | 2023-05-18 10:27:20 +0300 |
| commit | 2251916df1ca5d1b00f0a55b52feb67cd65ae090 (patch) | |
| tree | bc14bfd93f4e31ad5ded52adf0e86b872e293427 | |
| parent | a0c44d24e98338afdf54275ad369e5da5f4a1ae4 (diff) | |
perl: fix compilation with 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.
_LARGEFILE64_SOURCE has to be defined in the source, or CFLAGS can be used
to pass -D_LARGEFILE64_SOURCE to allow to keep using LFS64 definitions.
Signed-off-by: Robert Marko <robimarko@gmail.com>
| -rw-r--r-- | lang/perl/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/perl/Makefile b/lang/perl/Makefile index 99302cb1a..40532b5f0 100644 --- a/lang/perl/Makefile +++ b/lang/perl/Makefile @@ -11,7 +11,7 @@ include perlver.mk PKG_NAME:=perl PKG_VERSION:=$(PERL_VERSION) -PKG_RELEASE:=7 +PKG_RELEASE:=8 PKG_SOURCE_URL:=\ https://cpan.metacpan.org/src/5.0 \ @@ -40,6 +40,10 @@ HOST_BUILD_PARALLEL:=1 # Variables used during configuration/build HOST_PERL_PREFIX:=$(STAGING_DIR_HOSTPKG)/usr +ifneq ($(CONFIG_USE_MUSL),) + TARGET_CFLAGS += -D_LARGEFILE64_SOURCE +endif + # Filter -g3, it will break Compress-Raw-Zlib TARGET_CFLAGS_PERL:=$(patsubst -g3,-g,$(TARGET_CFLAGS)) TARGET_CPPFLAGS_PERL:=$(patsubst -g3,-g,$(TARGET_CPPFLAGS)) |
