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 <[email protected]>
---
 meta/classes/go-mod.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/go-mod.bbclass b/meta/classes/go-mod.bbclass
index 5871d025067..cabb04d0ec0 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
 
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#142810): 
https://lists.openembedded.org/g/openembedded-core/message/142810
Mute This Topic: https://lists.openembedded.org/mt/77134473/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to