From 9ecbba977edc36996c01a8a6b9299b28173ad2b4 Mon Sep 17 00:00:00 2001 From: Lucian Cristian Date: Tue, 16 May 2023 20:23:01 +0000 Subject: [PATCH] nspr: fix musl compile Manually pass -D_LARGEFILE64_SOURCE to allow to keep using LFS64 definitions. Signed-off-by: Lucian Cristian --- libs/nspr/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/nspr/Makefile b/libs/nspr/Makefile index 4315c42e04..c61bf527ae 100644 --- a/libs/nspr/Makefile +++ b/libs/nspr/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=nspr PKG_VERSION:=4.35 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_MAINTAINER:=Lucian Cristian PKG_LICENCE:=MPL-2.0 @@ -36,6 +36,9 @@ endif export MUSL=$(if $(CONFIG_LIBC_USE_GLIBC),0,1) TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed $(FPIC) +ifneq ($(CONFIG_USE_MUSL),) + TARGET_CFLAGS += -D_LARGEFILE64_SOURCE +endif CONFIGURE_ARGS += \ --build=$(GNU_HOST_NAME) \ -- 2.30.2