From a9d0a79e8d320174737263ce099a259d85a92ceb Mon Sep 17 00:00:00 2001 From: "Peter A. Bigot" Date: Sat, 26 Sep 2020 05:53:09 -0500 Subject: 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 Signed-off-by: Richard Purdie --- meta/classes/go-mod.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta') 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 -- cgit 1.2.3-korg