diff options
| author | Chen Qi <Qi.Chen@windriver.com> | 2023-12-11 10:53:19 +0100 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2023-12-14 19:59:10 +0000 |
| commit | 33f31493ed2b233c75e2a2316b7f3323d23aa9d3 (patch) | |
| tree | 7a6b6984c513e4a7e31037ff4279c1d932dc8e56 /recipes-devtools | |
| parent | 2efdfa20a4767aa5959468737496475fc26481e7 (diff) | |
| download | meta-virtualization-33f31493ed2b233c75e2a2316b7f3323d23aa9d3.tar.gz | |
cni: fix textrel QA issue
When building cni, we get textrel QA issue like below:
cni: ELF binary /usr/libexec/cni/macvlan has relocations in .text
The problem could be solved by adding '-buildmode=pie' to ${GO}.
In go.bbclass, this flag is added to GOBUILDFLAGS conditionally,
that is, if the arch is not mips nor riscv32, this '-buildmode=pie'
is added to GOBUILDFLAGS. So make use of that.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-devtools')
0 files changed, 0 insertions, 0 deletions
