generic-poky/meta
Khem Raj 47594d59ec cmake.bbclass: Set CXXFLAGS and CFLAGS
We strip the TOOLCHAIN_OPTIONS and HOST_CC_ARCH from CC/CXX in cmake.bbclass
whereas CFLAFS and CXXFLAGS assume that TOOLCHAIN_OPTIONS are
part of CC/CXX variables, this causes compile failures when cmake
is running compiler tests during configure on some architectures
especially armhf, because hf ABI information -mfloat-abi is part
of TOOLCHAIN_OPTIONS, so what happens is that testcase gets compiled
without hard-float, howver, during linking the float ABI option
is passed via LDFLAGS, now linker rejects this and fails like
/mnt/a/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/6.2.0/ld: error: cmTC_27947 uses VFP register arguments, CMakeFiles/cmTC_27947.dir/src.cxx.o does not
mnt/a/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/6.2.0/ld: failed to merge target specific data of file CMakeFiles/cmTC_27947.dir/src.cxx.o
collect2: error: ld returned 1 exit status

This means that CMake now fails the configure time test too
which is not right, e.g. it might disable features which actually do exist
and should be enabled e.g. in case above it is resulting as below

Performing C++ SOURCE FILE Test HAS_BUILTIN_SYNC_SUB_AND_FETCH failed with the following output:

Its actually a bug in CMake see
https://gitlab.kitware.com/cmake/cmake/issues/16421

CMake is ignoring CMAKE_CXX_FLAGS when using CHECK_CXX_SOURCE_COMPILES
function.

Until it is fixed upstream, we add HOST_CC_ARCH and TOOLCHAIN_OPTIONS
to CFLAGS and CXXFLAGS, so that we can ensure that compiler invocation
remains consistent.

(From OE-Core rev: 826f3cdb474b5728b22f08d2342fc90235ca9e7d)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-11-23 11:10:12 +00:00
..
classes cmake.bbclass: Set CXXFLAGS and CFLAGS 2016-11-23 11:10:12 +00:00
conf qemuarm64.conf: make runqemu's graphics work 2016-11-15 15:19:53 +00:00
files sdk-installer: Fix unclear SDK installer message 2016-10-11 22:59:35 +01:00
lib lib/oe/package_manager: .deb pre/postinst args 2016-11-23 11:10:11 +00:00
recipes-bsp acpid: Upgrade 2.0.27 -> 2.0.28 2016-11-06 23:35:34 +00:00
recipes-connectivity openssh: fix CVE-2016-8858 2016-11-23 11:10:12 +00:00
recipes-core glibc: fix CVE-2016-6323 2016-11-23 11:10:12 +00:00
recipes-devtools qemu: update run-ptest script 2016-11-23 11:10:12 +00:00
recipes-extended ltp: Reduce duplication in MIPS variants. 2016-11-23 11:10:12 +00:00
recipes-gnome libwnck3: remove the recipe 2016-11-06 23:35:34 +00:00
recipes-graphics wayland: upgrade from 1.11.1 to 1.12.0 2016-11-15 15:19:54 +00:00
recipes-kernel systemtap: fix native linking on recent Ubuntu 2016-11-15 15:19:54 +00:00
recipes-lsb4 libpng12: Handle no static libs 2016-02-15 16:28:46 +00:00
recipes-multimedia tiff: Security fix CVE-2016-3658 2016-11-23 11:10:12 +00:00
recipes-rt rt-tests: fix the recipe version to match upstream 2016-11-06 23:35:34 +00:00
recipes-sato webkitgtk: Add an option to disable opengl support 2016-11-23 11:10:12 +00:00
recipes-support libbsd: Fix build with musl 2016-11-15 15:19:54 +00:00
site siteinfo.bbclass: Add mipsisa{32, 64}r6{el, } support 2016-10-07 16:43:57 +01:00
COPYING.GPLv2 Fix license notices for OE-Core 2014-01-02 12:58:54 +00:00
COPYING.MIT
recipes.txt qt4: remove recipes and classes 2016-01-07 13:40:14 +00:00