summaryrefslogtreecommitdiff
path: root/meta-google
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2021-09-10 23:48:29 +0300
committerWilliam A. Kennington III <wak@google.com>2021-09-11 00:44:26 +0300
commit31ff6c42f09573a25a0583fe1e0badab93e0476e (patch)
tree81c557faadd5a6ff4b3c9cd7a834af1d1927fb62 /meta-google
parent30c67e8ea8c8e4caf53ed54ff0dc5dd91960681c (diff)
downloadopenbmc-31ff6c42f09573a25a0583fe1e0badab93e0476e.tar.xz
meta-google: protobuf: Enable LTO
We want to reduce the size of our target binaries, and LTO saves us about 300K. Change-Id: Id1fe52b48a16999385251ae927012ff3e494e2f3 Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'meta-google')
-rw-r--r--meta-google/recipes-devtools/protobuf/protobuf_%.bbappend3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-google/recipes-devtools/protobuf/protobuf_%.bbappend b/meta-google/recipes-devtools/protobuf/protobuf_%.bbappend
new file mode 100644
index 000000000..b709ea4cd
--- /dev/null
+++ b/meta-google/recipes-devtools/protobuf/protobuf_%.bbappend
@@ -0,0 +1,3 @@
+# Reduces the size of the output binaries by ~300K
+CFLAGS:append:class-target = " -flto"
+CXXFLAGS:append:class-target = " -flto"