From 1a977b269ed437bebb9ae7810e3157746ec9174d Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Thu, 13 May 2021 02:33:12 -0700 Subject: phosphor-defaults: Enable LTO for all meson targets We want to benefit from the space savings of being able to link time optimize all of our binaries built through meson. Change-Id: If36f9e76a27bfa8d00210492c2397a174e09dbd3 Signed-off-by: William A. Kennington III --- meta-phosphor/conf/distro/include/phosphor-defaults.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta-phosphor/conf') diff --git a/meta-phosphor/conf/distro/include/phosphor-defaults.inc b/meta-phosphor/conf/distro/include/phosphor-defaults.inc index b8f4c52e3..7aed7cbd4 100644 --- a/meta-phosphor/conf/distro/include/phosphor-defaults.inc +++ b/meta-phosphor/conf/distro/include/phosphor-defaults.inc @@ -239,6 +239,9 @@ SECURITY_CFLAGS_pn-obmc-libobmc-intf = "" # is merged and rev bumped SECURITY_CFLAGS_pn-pldm = "" +# We generally want to enable LTO with meson +EXTRA_OEMESON_append_class-target = " -Db_lto=true" + # Set the root password to '0penBmc' inherit extrausers -- cgit v1.2.3