From a96a442813d9990406cee5213db5e2b8b1a69bed Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 11 Feb 2017 09:56:08 +0000 Subject: systemd-boot: Dont use -O0 with clang Clang has a bug where it emits "memset" into code even when we use -ffreestanding. As a workaround compile with -O1 when using clang Signed-off-by: Khem Raj --- recipes-bsp/systemd-boot/systemd-boot_%.bbappend | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 recipes-bsp/systemd-boot/systemd-boot_%.bbappend (limited to 'recipes-bsp') diff --git a/recipes-bsp/systemd-boot/systemd-boot_%.bbappend b/recipes-bsp/systemd-boot/systemd-boot_%.bbappend new file mode 100644 index 0000000..d73f64c --- /dev/null +++ b/recipes-bsp/systemd-boot/systemd-boot_%.bbappend @@ -0,0 +1,8 @@ +do_configure_append_toolchain-clang() { + export NM="${HOST_PREFIX}nm" + export AR="${HOST_PREFIX}ar" + export RANLIB="${HOST_PREFIX}ranlib" + export EFI_CC="${CC}" + sed -i -e "s#O0#O#g" ${S}/Makefile.am +} + -- cgit v1.2.3-54-g00ecf