diff options
| author | Dengke Du <dengke.du@windriver.com> | 2019-02-28 09:28:08 +0800 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2019-03-01 11:37:43 -0500 |
| commit | 3e7593f3570f300822f183120de101b717d9ddf9 (patch) | |
| tree | 242c4bca4d6c95d41bab8f8301ed752d29d38a7b /recipes-networking/openvswitch/files/openvswitch-switch-setup | |
| parent | 832a0f1e10af43a8006eb84910ceee4472c5d3ab (diff) | |
| download | meta-virtualization-3e7593f3570f300822f183120de101b717d9ddf9.tar.gz | |
criu: fix host gcc can't recognized option -fmacro-prefix-map
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.
Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-networking/openvswitch/files/openvswitch-switch-setup')
0 files changed, 0 insertions, 0 deletions
