summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorAndrew Geissler <geissonator@yahoo.com>2018-08-27 10:52:23 -0700
committerAndrew Geissler <geissonator@yahoo.com>2018-08-27 10:52:23 -0700
commitecd4bc7bf240b7d30ece98e74f7056b2cab1f38b (patch)
tree9aed650d07ecefa0653ba895ae3100a64c522fe3 /Makefile.am
parent86be476bfb6acfd413afff449a357123639eb29e (diff)
downloadphosphor-fan-presence-ecd4bc7bf240b7d30ece98e74f7056b2cab1f38b.tar.gz
phosphor-fan-presence-ecd4bc7bf240b7d30ece98e74f7056b2cab1f38b.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 Change-Id: I3ee31a15fc0ded4308aa9d00a11b41bc62eb9799 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 0b824b7..87c2fb8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,7 +5,7 @@ libfan_la_LDFLAGS = -static
libfan_la_LIBADD = \
$(SDBUSPLUS_LIBS)
libfan_la_CXXFLAGS =
- $(SDBUSPLUS_CFLAGS)
+ $(SDBUSPLUS_CFLAGS) -flto
libfan_la_SOURCES = \
utility.cpp \
timer.cpp
OpenPOWER on IntegriCloud