diff options
author | Andrew Geissler <geissonator@yahoo.com> | 2018-08-27 10:34:07 -0700 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2018-08-27 10:34:07 -0700 |
commit | d6819c9fcc44b3691eeb98ef3675d553bb28eeeb (patch) | |
tree | bd023da0e60e777f1b124f2c182b77645d6459e7 | |
parent | 566e096e97aa4ee78b0ec5fe2c66c09125f90b0f (diff) | |
download | phosphor-inventory-manager-d6819c9fcc44b3691eeb98ef3675d553bb28eeeb.tar.gz phosphor-inventory-manager-d6819c9fcc44b3691eeb98ef3675d553bb28eeeb.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: I80b68276039636a0e59f3ffad0ec59b73973a18c
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
-rw-r--r-- | Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 9c44d68..94600cc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -10,7 +10,7 @@ base_yamldir=$(YAML_PATH) 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 = \ |