libqrtr-glib: Makefile polishing
authorMaxim Anisimov <redacted>
Sat, 26 Mar 2022 08:52:06 +0000 (11:52 +0300)
committerRosen Penev <redacted>
Tue, 29 Mar 2022 02:54:05 +0000 (19:54 -0700)
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 <redacted>
libs/libqrtr-glib/Makefile

index a1634a4e1bde4727883ac32ebc40aa2af1a67e20..c0169317f34dbd58e87c2d98a5b8e37b426d3354 100644 (file)
@@ -19,12 +19,14 @@ PKG_MIRROR_HASH:=ffb918edf96581d4ba310bd1e975297e9a7006a7e26f37934afde462585125f
 PKG_MAINTAINER:=Nicholas Smith <nicholas.smith@telcoantennas.com.au>
 
 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
git clone https://git.99rst.org/PROJECT