jsoncpp: add size optimizations
authorRosen Penev <redacted>
Sun, 26 Apr 2020 03:49:11 +0000 (20:49 -0700)
committerRosen Penev <redacted>
Mon, 27 Apr 2020 22:55:23 +0000 (15:55 -0700)
Reduces size slightly.

Signed-off-by: Rosen Penev <redacted>
libs/jsoncpp/Makefile

index c63daed6ba18d7a9fe168492a2a73c81d7295c07..0eb1f898ff2a57519bd0bdcf13c21e8ea393f23d 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=jsoncpp
 PKG_VERSION:=1.9.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/open-source-parsers/jsoncpp/tar.gz/$(PKG_VERSION)?
@@ -47,6 +47,11 @@ define Package/jsoncpp/description
   convenient format to store user input files.
 endef
 
+MESON_ARGS += \
+       -Db_lto=true
+
+TARGET_LDFLAGS += -Wl,--gc-sections
+
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
        $(CP) $(PKG_INSTALL_DIR)/usr/include/json $(1)/usr/include/
git clone https://git.99rst.org/PROJECT