nspr: fix musl compile

This commit is contained in:
coolsnowwolf 2024-01-20 21:46:25 +08:00
parent 78971139ee
commit 72566f49ef

View 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 <lucian.cristian@gmail.com>
PKG_LICENCE:=MPL-2.0
@ -21,6 +21,7 @@ PKG_HASH:=7ea3297ea5969b5d25a5dd8d47f2443cda88e9ee746301f6e1e1426f8a6abc8f
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
PKG_FIXUP:=autoreconf
PKG_BUILD_FLAGS:=lto
include $(INCLUDE_DIR)/package.mk
@ -35,7 +36,9 @@ endif
export MUSL=$(if $(CONFIG_LIBC_USE_GLIBC),0,1)
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed $(FPIC)
TARGET_CFLAGS += -flto
ifneq ($(CONFIG_USE_MUSL),)
TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
endif
CONFIGURE_ARGS += \
--build=$(GNU_HOST_NAME) \