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>
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
MESON_ARGS += \
-Dintrospection=false \
- -Dgtk_doc=false
+ -Dgtk_doc=false \
+ -Db_lto=true
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include