diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-03-29 16:39:53 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-04-19 14:42:20 +0100 |
commit | 4eeb2afd0e317c173d4f35bca00604d661b7fac2 (patch) | |
tree | eacbd5d1e2937b9826369323b6328d6fbf9c2fdf /meta/recipes-devtools/go | |
parent | 4e0d6af8322acc15d846f4725d34c28bad2a6c5b (diff) | |
download | poky-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')
-rw-r--r-- | meta/recipes-devtools/go/go-target.inc | 4 |
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 | ||
15 | export GOCACHE = "${B}/.cache" | 15 | export GOCACHE = "${B}/.cache" |
16 | GO_LDFLAGS = "" | 16 | GO_LDFLAGS = "" |
17 | GO_LDFLAGS:class-nativesdk = "-linkmode external" | 17 | GO_LDFLAGS:class-nativesdk = " -linkmode external" |
18 | export GO_LDFLAGS | 18 | export GO_LDFLAGS |
19 | 19 | export GOBUILDFLAGS = "-gcflags=-trimpath=$GOPATH -asmflags=-trimpath=$GOPATH -trimpath" | |
20 | CC:append:class-nativesdk = " ${SECURITY_NOPIE_CFLAGS}" | 20 | CC:append:class-nativesdk = " ${SECURITY_NOPIE_CFLAGS}" |
21 | 21 | ||
22 | do_configure[noexec] = "1" | 22 | do_configure[noexec] = "1" |