summaryrefslogtreecommitdiffstats
path: root/recipes-extended/xen/xen.inc
diff options
context:
space:
mode:
authorChristopher Clark <christopher.w.clark@gmail.com>2018-09-25 10:40:59 -0700
committerBruce Ashfield <bruce.ashfield@windriver.com>2018-09-25 17:38:10 -0400
commit55590b65f2de925cdf093210d9a17f3fc745c389 (patch)
tree4811740f2fcfd3ed7caed558acea2b536a46834d /recipes-extended/xen/xen.inc
parent6f2de77556960d6953aa56fb8e8d876f58fdd583 (diff)
downloadmeta-virtualization-55590b65f2de925cdf093210d9a17f3fc745c389.tar.gz
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 <christopher.clark6@baesystems.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-extended/xen/xen.inc')
-rw-r--r--recipes-extended/xen/xen.inc6
1 files changed, 6 insertions, 0 deletions
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=""
842# patching the build to be ok with this 842# patching the build to be ok with this
843TUNE_CCARGS := "${@oe.utils.str_filter_out('-mfpmath=sse', '${TUNE_CCARGS}', d)}" 843TUNE_CCARGS := "${@oe.utils.str_filter_out('-mfpmath=sse', '${TUNE_CCARGS}', d)}"
844 844
845# Supply the full set of compiler flags via the tool variables
846# Yocto supplys _FORTIFY_SOURCE via CC/CPP/CXX but optimization -O via C*FLAGS
847CC_append = " ${CFLAGS}"
848CPP_append = " ${CPPFLAGS}"
849CXX_append = " ${CXXFLAGS}"
850
845EXTRA_OECONF += " \ 851EXTRA_OECONF += " \
846 --exec-prefix=/usr \ 852 --exec-prefix=/usr \
847 --prefix=/usr \ 853 --prefix=/usr \