diff options
author | Peter Morrow <pemorrow@linux.microsoft.com> | 2021-04-06 06:07:58 -0700 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2021-04-19 04:27:15 -1000 |
commit | a1b0631c4723d2a98eb9e80ec85a00bc46276783 (patch) | |
tree | 828fe556a05291ee0a91fdf88e79cd0ce66e3216 /meta/classes/go.bbclass | |
parent | 099bd78ce80772c42887104a40aa0a92fdaa6965 (diff) | |
download | openembedded-core-a1b0631c4723d2a98eb9e80ec85a00bc46276783.tar.gz |
go_1.14: don't set -buildmode=pie when building for windows targets
go 1.14 for windows targets does not support -buildmode=pie, disable it and use
the default buildmode instead. Support for -buildmode=pie for windows targets
is added with go 1.15 (https://golang.org/doc/go1.15) which is added to poky in
gatesgarth.
Signed-off-by: Peter Morrow <pemorrow@linux.microsoft.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/classes/go.bbclass')
-rw-r--r-- | meta/classes/go.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass index e6c3591479..16e46398b1 100644 --- a/meta/classes/go.bbclass +++ b/meta/classes/go.bbclass @@ -145,11 +145,11 @@ FILES_${PN}-staticdev = "${libdir}/go/pkg" INSANE_SKIP_${PN} += "ldflags" -# Add -buildmode=pie to GOBUILDFLAGS to satisfy "textrel" QA checking, but mips -# doesn't support -buildmode=pie, so skip the QA checking for mips and its -# variants. +# Add -buildmode=pie to GOBUILDFLAGS to satisfy "textrel" QA checking, but +# windows/mips/riscv doesn't support -buildmode=pie, so skip the QA checking +# for windows/mips/riscv and their variants. python() { - if 'mips' in d.getVar('TARGET_ARCH') or 'riscv' in d.getVar('TARGET_ARCH'): + if 'mips' in d.getVar('TARGET_ARCH') or 'riscv' in d.getVar('TARGET_ARCH') or 'windows' in d.getVar('TARGET_GOOS'): d.appendVar('INSANE_SKIP_%s' % d.getVar('PN'), " textrel") else: d.appendVar('GOBUILDFLAGS', ' -buildmode=pie') |