From 1e9baf47a6ae8f8a4474ed17fbdf7dd3f310b62d Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 9 Feb 2019 23:27:17 -0800 Subject: [PATCH] libtasn1: Optimize compilation for size Disabled doc and valgrind tests to speed up compilation. Added --disable-ld-version-script to reduce compiled size. Added -Wl,--gc-sections to reduce compiled size. From 28339 to 27700 bytes. Signed-off-by: Rosen Penev --- libs/libtasn1/Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/libs/libtasn1/Makefile b/libs/libtasn1/Makefile index 8d0152166..e20fcada5 100644 --- a/libs/libtasn1/Makefile +++ b/libs/libtasn1/Makefile @@ -9,11 +9,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libtasn1 PKG_VERSION:=4.13 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@GNU/$(PKG_NAME) PKG_HASH:=7e528e8c317ddd156230c4e31d082cd13e7ddeb7a54824be82632209550c8cca + +PKG_MAINTAINER:=Nikos Mavrogiannopoulos PKG_LICENSE:=LGPLv2.1+ PKG_LICENSE_FILES:=COPYING.LIB @@ -26,7 +28,6 @@ define Package/libtasn1 SECTION:=libs CATEGORY:=Libraries TITLE:=An ASN.1 and DER structures manipulation library - MAINTAINER:=Nikos Mavrogiannopoulos URL:=https://www.gnu.org/software/libtasn1/ endef @@ -35,12 +36,13 @@ define Package/libtasn1/description Distinguish Encoding Rules (DER) manipulation. endef -TARGET_CFLAGS += $(FPIC) +TARGET_LDFLAGS += -Wl,--gc-sections CONFIGURE_ARGS += \ - --enable-shared \ - --disable-gcc-warnings \ - --enable-static + --disable-doc \ + --disable-gcc-warnings \ + --disable-ld-version-script \ + --disable-valgrind-tests define Build/InstallDev $(INSTALL_DIR) $(1)/usr/bin