aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-containers/riddler/files/0001-build-use-to-select-cross-compiler.patch
blob: 8098562e3a975a23f5bcb9f687e60be6e1789be7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
From 8ca4391a5954db168d513ba64c3791f63b044fbf Mon Sep 17 00:00:00 2001
From: Bruce Ashfield <bruce.ashfield@gmail.com>
Date: Tue, 30 Jun 2020 23:58:22 -0400
Subject: [PATCH] build: use  to select cross compiler

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
---
 git/src/import/Makefile | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git git/src/import/Makefile git/src/import/Makefile
index c6976af..f3c8d17 100644
--- git/src/import/Makefile
+++ git/src/import/Makefile
@@ -10,11 +10,11 @@ all: clean build static fmt lint test vet
 
 build:
 	@echo "+ $@"
-	@go build -tags "$(BUILDTAGS) cgo" .
+	@${GO} build -tags "$(BUILDTAGS) cgo" .
 
 static:
 	@echo "+ $@"
-	CGO_ENABLED=1 go build -tags "$(BUILDTAGS) cgo static_build" -ldflags "-w -extldflags -static" -o riddler .
+	CGO_ENABLED=1 ${GO} build -tags "$(BUILDTAGS) cgo static_build" -ldflags "-w -extldflags -static" -o riddler .
 
 fmt:
 	@echo "+ $@"
@@ -26,11 +26,11 @@ lint:
 
 test: fmt lint vet
 	@echo "+ $@"
-	@go test -v -tags "$(BUILDTAGS) cgo" $(shell go list ./... | grep -v vendor)
+	@${GO} test -v -tags "$(BUILDTAGS) cgo" $(shell go list ./... | grep -v vendor)
 
 vet:
 	@echo "+ $@"
-	@go vet $(shell go list ./... | grep -v vendor)
+	@${GO} vet $(shell go list ./... | grep -v vendor)
 
 clean:
 	@echo "+ $@"
@@ -38,4 +38,4 @@ clean:
 
 install:
 	@echo "+ $@"
-	@go install -v .
+	@${GO} install -v .
-- 
2.19.1