Browse Source

nspr: nspr add -flto to compile

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
lilik-openwrt-22.03
Lucian Cristian 5 years ago
parent
commit
df7392149c
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      libs/nspr/Makefile

+ 3
- 2
libs/nspr/Makefile 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) \


Loading…
Cancel
Save