summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Geissler <geissonator@yahoo.com>2018-08-27 11:27:54 -0700
committerAndrew Geissler <geissonator@yahoo.com>2018-08-29 06:47:14 -0700
commite4c063293af32e59f893bea9016522e7753413d4 (patch)
treeffc2a876ea710fd3bbb7b6e5fef84a7cdae3038f
parent28b2ba4a2dc75d56d9a52686b67d752b735cd260 (diff)
downloadphosphor-bmc-code-mgmt-e4c063293af32e59f893bea9016522e7753413d4.tar.gz
phosphor-bmc-code-mgmt-e4c063293af32e59f893bea9016522e7753413d4.zip
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 <geissonator@yahoo.com>
-rwxr-xr-xMakefile.am3
1 files changed, 2 insertions, 1 deletions
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) \
OpenPOWER on IntegriCloud