From df7392149c2e26cd7b19feea8bb11fc3413e840d Mon Sep 17 00:00:00 2001 From: Lucian Cristian Date: Thu, 14 May 2020 16:22:56 +0300 Subject: [PATCH] nspr: nspr add -flto to compile Signed-off-by: Lucian Cristian --- libs/nspr/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/nspr/Makefile b/libs/nspr/Makefile index e68d7397e..8d4c42ab2 100644 --- a/libs/nspr/Makefile +++ b/libs/nspr/Makefile @@ -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 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) \