nspr: fix musl compile
authorLucian Cristian <[email protected]>
Tue, 16 May 2023 20:23:01 +0000 (20:23 +0000)
committerNick Hainke <[email protected]>
Tue, 16 May 2023 21:32:58 +0000 (23:32 +0200)
Manually pass -D_LARGEFILE64_SOURCE to allow to keep using LFS64 definitions.

Signed-off-by: Lucian Cristian <[email protected]>
libs/nspr/Makefile

index 4315c42e048bb4ea67f6b68bb26471f58c229bb3..c61bf527aea7c8529ee8f80346d3787e692ac106 100644 (file)
@@ -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 <[email protected]>
 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) \