chrony: enable LTO
authorStijn Tintel <stijn@linux-ipv6.be>
Wed, 16 Mar 2022 00:06:35 +0000 (02:06 +0200)
committerRosen Penev <rosenp@gmail.com>
Thu, 17 Mar 2022 02:35:01 +0000 (19:35 -0700)
Size difference of the ipk on qoriq:
* chrony: 718571 676886
* chrony-nts: 786960 757064

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
net/chrony/Makefile

index b2b310371d72a7f24a95c3f303d76d461cd234c7..a5350a09797ddd00426feb5ee1fbe22f0e4cefbe 100644 (file)
@@ -79,6 +79,9 @@ CONFIGURE_ARGS+= \
 
 CONFIGURE_VARS+=CPPFLAGS=-DNDEBUG
 
+TARGET_CFLAGS += -flto
+TARGET_LDFLAGS += -flto
+
 define Package/chrony/install
        $(INSTALL_DIR) $(1)/usr/bin/
        $(INSTALL_DIR) $(1)/usr/sbin/