]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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>
Tue, 27 Nov 2018 23:41:02 +0000 (23:41 +0000)
commit9fc8b6622cab9ddc0e037dd897e57f20527d490b
tree64097dd2fdc79be5dac5952cd7d87c7a105c90b8
parent25a916534653b7c05391b831099667d6983c10b2
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