From 8d60e056d4fbb1ef22a4ee9f3bc612eb60a36852 Mon Sep 17 00:00:00 2001 From: Maxim Anisimov Date: Sat, 26 Mar 2022 11:52:06 +0300 Subject: [PATCH] libqrtr-glib: Makefile polishing Enabled lto and additional gcc flags for perfomance and less size. Removed BUILD_PARALLEL options. These are default with ninja/meson. Signed-off-by: Maxim Anisimov --- libs/libqrtr-glib/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libs/libqrtr-glib/Makefile b/libs/libqrtr-glib/Makefile index a1634a4e1..c0169317f 100644 --- a/libs/libqrtr-glib/Makefile +++ b/libs/libqrtr-glib/Makefile @@ -19,12 +19,14 @@ PKG_MIRROR_HASH:=ffb918edf96581d4ba310bd1e975297e9a7006a7e26f37934afde462585125f PKG_MAINTAINER:=Nicholas Smith PKG_INSTALL:=1 -PKG_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/nls.mk include $(INCLUDE_DIR)/meson.mk +TARGET_CFLAGS += -ffunction-sections -fdata-sections -fno-merge-all-constants -fmerge-constants +TARGET_LDFLAGS += -Wl,--gc-sections + define Package/libqrtr-glib SECTION:=libs CATEGORY:=Libraries @@ -41,7 +43,8 @@ endef MESON_ARGS += \ -Dintrospection=false \ - -Dgtk_doc=false + -Dgtk_doc=false \ + -Db_lto=true define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include