summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter A. Bigot <pab@pabigot.com>2020-09-26 05:53:09 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-28 14:15:45 +0100
commita9d0a79e8d320174737263ce099a259d85a92ceb (patch)
tree9ba0957242f818ec090b5d030781ca2849d90589
parenta2b50b74d609ce079ab36b82d4c7c3539fb56485 (diff)
downloadopenembedded-core-contrib-a9d0a79e8d320174737263ce099a259d85a92ceb.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. Signed-off-by: Peter A. Bigot <pab@pabigot.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/go-mod.bbclass2
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 @@
# The '-modcacherw' option ensures we have write access to the cached objects so
# we avoid errors during clean task as well as when removing the TMPDIR.
-export GOBUILDFLAGS ?= "-v ${GO_LDFLAGS} -modcacherw"
+GOBUILDFLAGS_append = " -modcacherw"
inherit go