diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2020-09-01 14:02:47 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2020-09-06 20:30:18 +0200 |
commit | a617861d4c3959d8f3e026128c21da1e7c5f73a5 (patch) | |
tree | efef474a8b24f6c517161c9d55c4c50a8c86afd7 /package/libs | |
parent | 13b4ed4cf45621253527f89f3147e65df24100e7 (diff) | |
download | upstream-a617861d4c3959d8f3e026128c21da1e7c5f73a5.tar.gz upstream-a617861d4c3959d8f3e026128c21da1e7c5f73a5.tar.bz2 upstream-a617861d4c3959d8f3e026128c21da1e7c5f73a5.zip |
jansson: Activate link time optimization (LTO)
The ipk sizes for mips_24Kc change like this:
old:
jansson4_2.13.1-1_mips_24kc.ipk 19.171
new:
jansson4_2.13.1-2_mips_24kc.ipk 18.936
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'package/libs')
-rw-r--r-- | package/libs/jansson/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/package/libs/jansson/Makefile b/package/libs/jansson/Makefile index 247be3401b..5799a362dd 100644 --- a/package/libs/jansson/Makefile +++ b/package/libs/jansson/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=jansson PKG_VERSION:=2.13.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_LICENSE:=MIT PKG_LICENSE_FILES:=LICENSE @@ -39,6 +39,9 @@ define Package/jansson/description Jansson is a C library for encoding, decoding and manipulating JSON data endef +TARGET_CFLAGS += -flto +TARGET_LDFLAGS += -flto + define Package/jansson/install $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjansson*so* $(1)/usr/lib/ |