]> code.ossystems Code Review - openembedded-core.git/commit
python/python3: use cc_basename to replace CC for checking compiler
authorChangqing Li <changqing.li@windriver.com>
Tue, 23 Oct 2018 05:22:18 +0000 (13:22 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Jan 2019 10:54:21 +0000 (10:54 +0000)
commit96383efa2726ed1bf7893332d726112a8552fc24
tree62c1a71e800ebc2bcecd29d535881af342d25f3b
parent0f87f8522a2c1b5a7042738887952b98060fbd9d
python/python3: use cc_basename to replace CC for checking compiler

When working path contains "clang"/"gcc"/"icc", it might be part of $CC
because of the "--sysroot" parameter. That could cause judgement error
about clang/gcc/icc compilers.

eg: if build under /yocto/builds/xicc/,  bitbake python,  $CC will contains
xicc, will make $CC match *icc, but actuall xicc just folder name.

When "*icc" is matched, below errors are reported when
compiling python/python3:
x86_64-wrs-linux-gcc: error: strict: No such file or directory
x86_64-wrs-linux-gcc: error: unrecognized command line option '-fp-model'

Here use cc_basename to replace CC for checking compiler to avoid such
kind of issue.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python/0001-python2-use-cc_basename-to-replace-CC-for-checking-c.patch [new file with mode: 0644]
meta/recipes-devtools/python/python3/0001-python3-use-cc_basename-to-replace-CC-for-checking-c.patch [new file with mode: 0644]
meta/recipes-devtools/python/python3_3.5.6.bb
meta/recipes-devtools/python/python_2.7.15.bb