From ecd4bc7bf240b7d30ece98e74f7056b2cab1f38b Mon Sep 17 00:00:00 2001 From: Andrew Geissler Date: Mon, 27 Aug 2018 10:52:23 -0700 Subject: 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: I3ee31a15fc0ded4308aa9d00a11b41bc62eb9799 Signed-off-by: Andrew Geissler --- cooling-type/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cooling-type') diff --git a/cooling-type/Makefile.am b/cooling-type/Makefile.am index 869d463..68d6c2f 100644 --- a/cooling-type/Makefile.am +++ b/cooling-type/Makefile.am @@ -13,7 +13,8 @@ phosphor_cooling_type_CXXFLAGS = \ $(SDBUSPLUS_CFLAGS) \ $(PHOSPHOR_LOGGING_CFLAGS) \ $(LIBEVDEV_CFLAGS) \ - ${PHOSPHOR_DBUS_INTERFACES_CFLAGS} + ${PHOSPHOR_DBUS_INTERFACES_CFLAGS} \ + -flto phosphor_cooling_type_LDADD = \ ${top_builddir}/libfan.la \ -- cgit v1.2.1