From 55590b65f2de925cdf093210d9a17f3fc745c389 Mon Sep 17 00:00:00 2001 From: Christopher Clark Date: Tue, 25 Sep 2018 10:40:59 -0700 Subject: xen: fix build with _FORTIFY_SOURCE, gcc 8.2 and glibc 2.28 Apply upstream-reviewed patch to fix compilation. Patch reorders header includes to issue a pragma to disable SSE before including any potentially always_inline functions that would use SSE. Also modify the recipe to supply compiler flags via the tools variables where they will get used, necessary as _FORTIFY_SOURCE requires optimization flags to be supplied. Signed-off-by: Christopher Clark Signed-off-by: Bruce Ashfield --- recipes-extended/xen/xen.inc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'recipes-extended/xen/xen.inc') diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc index bf4b3c28..365f71d9 100644 --- a/recipes-extended/xen/xen.inc +++ b/recipes-extended/xen/xen.inc @@ -842,6 +842,12 @@ export LDFLAGS="" # patching the build to be ok with this TUNE_CCARGS := "${@oe.utils.str_filter_out('-mfpmath=sse', '${TUNE_CCARGS}', d)}" +# Supply the full set of compiler flags via the tool variables +# Yocto supplys _FORTIFY_SOURCE via CC/CPP/CXX but optimization -O via C*FLAGS +CC_append = " ${CFLAGS}" +CPP_append = " ${CPPFLAGS}" +CXX_append = " ${CXXFLAGS}" + EXTRA_OECONF += " \ --exec-prefix=/usr \ --prefix=/usr \ -- cgit v1.2.3-54-g00ecf