From 31ff6c42f09573a25a0583fe1e0badab93e0476e Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 10 Sep 2021 13:48:29 -0700 Subject: 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 --- meta-google/recipes-devtools/protobuf/protobuf_%.bbappend | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 meta-google/recipes-devtools/protobuf/protobuf_%.bbappend (limited to 'meta-google/recipes-devtools/protobuf/protobuf_%.bbappend') 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" -- cgit v1.2.3