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: I80b68276039636a0e59f3ffad0ec59b73973a18c
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/Makefile.am b/Makefile.am
index 9c44d68..94600cc 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,7 +10,7 @@
phosphor_inventory_SOURCES = app.cpp
phosphor_inventory_LDADD = libmanager.la $(SDBUSPLUS_LIBS)
-phosphor_inventory_CXXFLAGS = $(SDBUSPLUS_CFLAGS)
+phosphor_inventory_CXXFLAGS = $(SDBUSPLUS_CFLAGS) -flto
libmanagercommon_la_LDFLAGS = -static
libmanagercommon_la_SOURCES = \