nspr: fix musl compile
Manually pass -D_LARGEFILE64_SOURCE to allow to keep using LFS64 definitions. Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
This commit is contained in:
parent
516610df29
commit
9ecbba977e
1 changed files with 4 additions and 1 deletions
|
@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=nspr
|
PKG_NAME:=nspr
|
||||||
PKG_VERSION:=4.35
|
PKG_VERSION:=4.35
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
|
PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
|
||||||
PKG_LICENCE:=MPL-2.0
|
PKG_LICENCE:=MPL-2.0
|
||||||
|
|
||||||
|
@ -36,6 +36,9 @@ endif
|
||||||
|
|
||||||
export MUSL=$(if $(CONFIG_LIBC_USE_GLIBC),0,1)
|
export MUSL=$(if $(CONFIG_LIBC_USE_GLIBC),0,1)
|
||||||
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed $(FPIC)
|
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed $(FPIC)
|
||||||
|
ifneq ($(CONFIG_USE_MUSL),)
|
||||||
|
TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
|
||||||
|
endif
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--build=$(GNU_HOST_NAME) \
|
--build=$(GNU_HOST_NAME) \
|
||||||
|
|
Loading…
Reference in a new issue