mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 23:02:22 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
cbf566ec43
commit
fd903cda43
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user