Add -flto to CXXFLAGS

Per openbmc/openbmc#3364, adding -flto to CXX flags
in order to reduce overall library and binary sizes.

Ref: https://gcc.gnu.org/wiki/LinkTimeOptimization

Change-Id: I435596a2e0b134f5220bc9521568354fe9338a79
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/Makefile.am b/Makefile.am
index b159a76..541afb0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -34,6 +34,7 @@
 		-lnl-genl-3
 
 ncsi_netlink_CPPFLAGS = -isystem=/usr/include/libnl3
+ncsi_netlink_CXXFLAGS = -flto
 
 
 phosphor_network_manager_SOURCES = \
@@ -78,7 +79,8 @@
 		$(SYSTEMD_CFLAGS) \
 		$(SDBUSPLUS_CFLAGS) \
 		$(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
-		$(PHOSPHOR_LOGGING_CFLAGS)
+		$(PHOSPHOR_LOGGING_CFLAGS) \
+		-flto
 
 xyz/openbmc_project/Network/VLAN/Create/server.cpp: xyz/openbmc_project/Network/VLAN/Create.interface.yaml xyz/openbmc_project/Network/VLAN/Create/server.hpp
 	@mkdir -p `dirname $@`