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>
diff --git a/meta-google/recipes-devtools/protobuf/protobuf_%.bbappend b/meta-google/recipes-devtools/protobuf/protobuf_%.bbappend
new file mode 100644
index 0000000..b709ea4
--- /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"