nspr: nspr add -flto to compile
authorLucian Cristian <lucian.cristian@gmail.com>
Thu, 14 May 2020 13:22:56 +0000 (16:22 +0300)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Fri, 21 Aug 2020 14:05:52 +0000 (16:05 +0200)
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
(cherry picked from commit df7392149c2e26cd7b19feea8bb11fc3413e840d)

libs/nspr/Makefile

index e68d7397ee9ca4ae5060e8b2bd4db9a1035482d9..8d4c42ab2096f65b1bc42481ba93ca6648cb692f 100644 (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) \