diff options
author | Otavio Salvador <otavio.salvador@gmail.com> | 2020-05-21 23:22:37 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-05-26 23:06:38 +0100 |
commit | e3df027b3697b6a92b417bba8d442a5bd15525fd (patch) | |
tree | 0dbd0ddadaff8ba7dcf13ef5073bc20f4826f5cd /meta/classes | |
parent | b34000ae3dd6e0a1d7fc332efb35c5da84cf2275 (diff) | |
download | openembedded-core-contrib-e3df027b3697b6a92b417bba8d442a5bd15525fd.tar.gz |
go.bbclass: Add `-trimpath` to default build flags
The `-trimpath` option is important for reproducible builds so full
build paths and module paths are not embedded.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/go.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass index c99689ac59..a9e31b50ea 100644 --- a/meta/classes/go.bbclass +++ b/meta/classes/go.bbclass @@ -41,7 +41,7 @@ GO_EXTLDFLAGS ?= "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${GO_RPATH_LINK} ${LDFLAGS GO_LINKMODE ?= "" GO_LINKMODE_class-nativesdk = "--linkmode=external" GO_LDFLAGS ?= '-ldflags="${GO_RPATH} ${GO_LINKMODE} -extldflags '${GO_EXTLDFLAGS}'"' -export GOBUILDFLAGS ?= "-v ${GO_LDFLAGS}" +export GOBUILDFLAGS ?= "-v ${GO_LDFLAGS} -trimpath" export GOPATH_OMIT_IN_ACTIONID ?= "1" export GOPTESTBUILDFLAGS ?= "${GOBUILDFLAGS} -c" export GOPTESTFLAGS ?= "" |