From bd2e80a65ec3e5cc4e27c46ddcb9c0f69aa326e6 Mon Sep 17 00:00:00 2001 From: Lei YU Date: Wed, 19 Sep 2018 11:17:09 +0800 Subject: Fix libfan_la_CXXFLAGS The libfan_la_CXXFLAGS was incorrectly defined as empty by a typo, fix it. Then specify gcc-ar gcc-ranlib for link time optimization, otherwise the static library will get link error. Tested: Verify the build is OK in CI, local build, and SDK build. Resolves openbmc/phosphor-fan-presence#11 Change-Id: I17c83b9927a796f8928a71688c1640d1a602a108 Signed-off-by: Lei YU --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 87c2fb8..3052713 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,7 +4,7 @@ noinst_LTLIBRARIES = libfan.la libfan_la_LDFLAGS = -static libfan_la_LIBADD = \ $(SDBUSPLUS_LIBS) -libfan_la_CXXFLAGS = +libfan_la_CXXFLAGS = \ $(SDBUSPLUS_CFLAGS) -flto libfan_la_SOURCES = \ utility.cpp \ -- cgit v1.2.1