diff options
author | Peter A. Bigot <pab@pabigot.com> | 2020-09-26 05:53:09 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-28 14:15:48 +0100 |
commit | fd903cda434b2c1ee079457eda45ea6bd140b64e (patch) | |
tree | fa600fbb21d3ded80db40192ace7a0a62cb08d73 /meta/classes/go-mod.bbclass | |
parent | cbf566ec43b8a6cbe4db327cd90ce88be402f5e0 (diff) | |
download | poky-fd903cda434b2c1ee079457eda45ea6bd140b64e.tar.gz |
go-mod.bbclass: use append to add `modcacherw`
This class provided default build flags but includes the base go class
which also provides default flags. Use a different mechanism to
extend the default flags without discarding `-trimpath` from the base
class.
(From OE-Core rev: a9d0a79e8d320174737263ce099a259d85a92ceb)
Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/go-mod.bbclass')
-rw-r--r-- | meta/classes/go-mod.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/go-mod.bbclass b/meta/classes/go-mod.bbclass index 5871d02506..cabb04d0ec 100644 --- a/meta/classes/go-mod.bbclass +++ b/meta/classes/go-mod.bbclass | |||
@@ -12,7 +12,7 @@ | |||
12 | 12 | ||
13 | # The '-modcacherw' option ensures we have write access to the cached objects so | 13 | # The '-modcacherw' option ensures we have write access to the cached objects so |
14 | # we avoid errors during clean task as well as when removing the TMPDIR. | 14 | # we avoid errors during clean task as well as when removing the TMPDIR. |
15 | export GOBUILDFLAGS ?= "-v ${GO_LDFLAGS} -modcacherw" | 15 | GOBUILDFLAGS_append = " -modcacherw" |
16 | 16 | ||
17 | inherit go | 17 | inherit go |
18 | 18 | ||