[meta-virtualization] [PATCH V2] criu: fix host gcc can't recognized option -fmacro-prefix-map
ddu
dengke.du at windriver.com
Wed Feb 27 19:40:34 PST 2019
Sorry for my little words for V2, I will add more next time.
Dengke
在 2019/2/28 上午11:37, ddu 写道:
>
> 在 2019/2/28 上午11:29, Bruce Ashfield 写道:
>> On Wed, Feb 27, 2019 at 8:09 PM Dengke Du <dengke.du at windriver.com>
>> wrote:
>>> Generally, our host gcc version below 8.0, but cross toolchain in yocto
>>> above 8.0, now 8.3, the option "macro-prefix-map" coming from 8.0,
>>> so if
>>> the host gcc below 8.0, it can't unrecognized the option
>>> "macro-prefix-map".
>>>
>>> In criu source code, the HOSTCFLAGS coming from CFLAGS:
>>> https://github.com/checkpoint-restore/criu/blob/criu-dev/Makefile#L17
>>> In yocto project, the CFLAGS coming from the cross toolchain,
>>> containing
>>> the "-fmacro-prefix-map" default, so we should use the BUILD_CFLAGS, it
>>> contains the flags that used for host building.
>> What's the difference from v1 ?
>>
>> Bruce
>
> Hi bruce
>
> V1 have two lines.
>
>>
>>> Signed-off-by: Dengke Du <dengke.du at windriver.com>
>>> ---
>>> recipes-containers/criu/criu_git.bb | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/recipes-containers/criu/criu_git.bb
>>> b/recipes-containers/criu/criu_git.bb
>>> index 45195ea..123f6a3 100644
>>> --- a/recipes-containers/criu/criu_git.bb
>>> +++ b/recipes-containers/criu/criu_git.bb
>>> @@ -54,6 +54,7 @@ export C_INCLUDE_PATH="${STAGING_INCDIR}/libnl3"
>>>
>>> export BUILD_SYS
>>> export HOST_SYS
>>> +export HOSTCFLAGS = "${BUILD_CFLAGS}"
>>>
>>> inherit setuptools
>>>
>>> --
>>> 2.7.4
>>>
>>> --
>>> _______________________________________________
>>> meta-virtualization mailing list
>>> meta-virtualization at yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/meta-virtualization
>>
>>
More information about the meta-virtualization
mailing list