diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2022-09-13 15:04:51 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2022-09-13 15:04:51 -0400 |
commit | e465ef7dcda9a10397c5601eb7ae9fb9969318ca (patch) | |
tree | 1235c78dac757d75679a5b1c8e1c436ba51ce0fd /recipes-containers/riddler/files/0001-build-use-to-select-cross-compiler.patch | |
parent | e167860a87cbabe18a60f090ed6a174aefbf7b45 (diff) | |
download | meta-virtualization-e465ef7dcda9a10397c5601eb7ae9fb9969318ca.tar.gz |
riddler: pass -trimpath to build
To fix most of the TMPDIR references, we pass -trimpath to the build
via a new variagle GOBUILDFLAGS.
There are still some debug references to TMDIR, that will be fixed
at a later time.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/riddler/files/0001-build-use-to-select-cross-compiler.patch')
-rw-r--r-- | recipes-containers/riddler/files/0001-build-use-to-select-cross-compiler.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes-containers/riddler/files/0001-build-use-to-select-cross-compiler.patch b/recipes-containers/riddler/files/0001-build-use-to-select-cross-compiler.patch index 8098562e..0c4f3fd2 100644 --- a/recipes-containers/riddler/files/0001-build-use-to-select-cross-compiler.patch +++ b/recipes-containers/riddler/files/0001-build-use-to-select-cross-compiler.patch | |||
@@ -17,12 +17,12 @@ index c6976af..f3c8d17 100644 | |||
17 | build: | 17 | build: |
18 | @echo "+ $@" | 18 | @echo "+ $@" |
19 | - @go build -tags "$(BUILDTAGS) cgo" . | 19 | - @go build -tags "$(BUILDTAGS) cgo" . |
20 | + @${GO} build -tags "$(BUILDTAGS) cgo" . | 20 | + @${GO} build ${GOBUILDFLAGS} -tags "$(BUILDTAGS) cgo" . |
21 | 21 | ||
22 | static: | 22 | static: |
23 | @echo "+ $@" | 23 | @echo "+ $@" |
24 | - CGO_ENABLED=1 go build -tags "$(BUILDTAGS) cgo static_build" -ldflags "-w -extldflags -static" -o riddler . | 24 | - CGO_ENABLED=1 go build -tags "$(BUILDTAGS) cgo static_build" -ldflags "-w -extldflags -static" -o riddler . |
25 | + CGO_ENABLED=1 ${GO} build -tags "$(BUILDTAGS) cgo static_build" -ldflags "-w -extldflags -static" -o riddler . | 25 | + CGO_ENABLED=1 ${GO} build ${GOBUILDFLAGS} -tags "$(BUILDTAGS) cgo static_build" -ldflags "-w -extldflags -static" -o riddler . |
26 | 26 | ||
27 | fmt: | 27 | fmt: |
28 | @echo "+ $@" | 28 | @echo "+ $@" |