From e4c063293af32e59f893bea9016522e7753413d4 Mon Sep 17 00:00:00 2001 From: Andrew Geissler Date: Mon, 27 Aug 2018 11:27:54 -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 Tested: Verified compiled and boots to Ready in QEMU. Change-Id: Id68f3253bcf33661d17a62376249a3b2637cfc10 Signed-off-by: Andrew Geissler --- Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 18c8763..1953709 100755 --- a/Makefile.am +++ b/Makefile.am @@ -73,7 +73,8 @@ generic_cxxflags = \ $(SYSTEMD_CFLAGS) \ $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ $(SDBUSPLUS_CFLAGS) \ - $(PHOSPHOR_LOGGING_CFLAGS) + $(PHOSPHOR_LOGGING_CFLAGS) \ + -flto generic_ldflags = \ $(SYSTEMD_LIBS) \ $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ -- cgit v1.2.1