summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go/go-target.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-03-29 16:39:53 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-19 14:42:20 +0100
commit4eeb2afd0e317c173d4f35bca00604d661b7fac2 (patch)
treeeacbd5d1e2937b9826369323b6328d6fbf9c2fdf /meta/recipes-devtools/go/go-target.inc
parent4e0d6af8322acc15d846f4725d34c28bad2a6c5b (diff)
downloadpoky-4eeb2afd0e317c173d4f35bca00604d661b7fac2.tar.gz
go-target: Pass -trimpath to go linker
This is for improving reproducibility to trim absolute paths as these recipes do not inherit go bbclass where it would be set automatically (From OE-Core rev: 365dae4e47b956b39fb62d9c6dcb917a11b37cba) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/go/go-target.inc')
-rw-r--r--meta/recipes-devtools/go/go-target.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-devtools/go/go-target.inc b/meta/recipes-devtools/go/go-target.inc
index d085643036..ed09cfe806 100644
--- a/meta/recipes-devtools/go/go-target.inc
+++ b/meta/recipes-devtools/go/go-target.inc
@@ -14,9 +14,9 @@ export CGO_LDFLAGS = "${@ ' '.join(filter(lambda f: not f.startswith('-fdebug-pr
14 14
15export GOCACHE = "${B}/.cache" 15export GOCACHE = "${B}/.cache"
16GO_LDFLAGS = "" 16GO_LDFLAGS = ""
17GO_LDFLAGS:class-nativesdk = "-linkmode external" 17GO_LDFLAGS:class-nativesdk = " -linkmode external"
18export GO_LDFLAGS 18export GO_LDFLAGS
19 19export GOBUILDFLAGS = "-gcflags=-trimpath=$GOPATH -asmflags=-trimpath=$GOPATH -trimpath"
20CC:append:class-nativesdk = " ${SECURITY_NOPIE_CFLAGS}" 20CC:append:class-nativesdk = " ${SECURITY_NOPIE_CFLAGS}"
21 21
22do_configure[noexec] = "1" 22do_configure[noexec] = "1"