nspr: nspr add -flto to compile

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
(cherry picked from commit df7392149c)
This commit is contained in:
Lucian Cristian 2020-05-14 16:22:56 +03:00 committed by Josef Schlehofer
parent 847ed6e0f7
commit 120ff2c631
No known key found for this signature in database
GPG key ID: B950216FE4329F4C

View file

@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=nspr
PKG_VERSION:=4.25
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
PKG_LICENCE:=MPL-2.0
@ -34,7 +34,8 @@ ifeq ($(LBITS),64)
endif
export MUSL=$(if $(CONFIG_LIBC_USE_GLIBC),0,1)
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed $(FPIC)
TARGET_CFLAGS += -flto
CONFIGURE_ARGS += \
--build=$(GNU_HOST_NAME) \