]> code.ossystems Code Review - openembedded-core.git/commit
meson.bbclass: fix to build for more projects
authorChen Qi <Qi.Chen@windriver.com>
Mon, 5 Mar 2018 02:02:01 +0000 (10:02 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 6 Mar 2018 14:36:34 +0000 (06:36 -0800)
commit177bd96a531fcc85e62baff04aba327e2bccee07
tree35d5dfe3e78fbdfebb4a9cf822454d4ed0fe9b74
parent04f49bc0f9c56ef9b6970891058c200968c5ded9
meson.bbclass: fix to build for more projects

We should use the value of CC for the c compiler setting in cross
compilation configuration file for meson. For example, if we only
use ${HOST_PREFIX}gcc instead of ${CC}, we would meet the following
do_compile failure for systemd.

  cc1: fatal error: linux/capability.h: No such file or directory

Do the same change for LD, AR, NM, STRIP and READELF.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/meson.bbclass