]> code.ossystems Code Review - openembedded-core.git/commitdiff
go-mod.bbclass: use append to add `modcacherw`
authorPeter A. Bigot <pab@pabigot.com>
Sat, 26 Sep 2020 10:53:09 +0000 (05:53 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 28 Sep 2020 13:15:45 +0000 (14:15 +0100)
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>
meta/classes/go-mod.bbclass

index 5871d025067ef1d2af02cf6558cefb9444dd7789..cabb04d0ec00a1f5357b8bd9edd14da0bd1beed4 100644 (file)
@@ -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