]> code.ossystems Code Review - openembedded-core.git/commit
sanity.bbclass: Update gcc sanity check
authorMark Hatle <mark.hatle@windriver.com>
Mon, 15 Jul 2013 20:10:26 +0000 (15:10 -0500)
committerSaul Wold <sgw@linux.intel.com>
Thu, 18 Jul 2013 14:14:39 +0000 (07:14 -0700)
commitc126729b29822d3602c9c4fd9016cc79b6057fc5
tree6abbac78bd81caeef4a0e34ababa942c6ed709ec
parent4f7fd6ba77e3c233faafe490c1986527789ed80c
sanity.bbclass: Update gcc sanity check

The gcc sanity check should be checking for the atomic function directly
instead of using the gcc macro.  Older versions of gcc do not have the macro
defined, but do support the atomic operations.  (glib-2.0 checks for both
the macro and the function, as long as one is available it will successfully
compile.)

Update the check to try both -mcpu=native and -mcpu=BUILD_ARCH.  Tell the user
which version worked properly.

[YOCTO #4845]

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/sanity.bbclass