summaryrefslogtreecommitdiffstats
path: root/recipes-containers/runc/files/0001-Makefile-respect-GOBUILDFLAGS-for-runc-and-remove-re.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/runc/files/0001-Makefile-respect-GOBUILDFLAGS-for-runc-and-remove-re.patch')
-rw-r--r--recipes-containers/runc/files/0001-Makefile-respect-GOBUILDFLAGS-for-runc-and-remove-re.patch26
1 files changed, 11 insertions, 15 deletions
diff --git a/recipes-containers/runc/files/0001-Makefile-respect-GOBUILDFLAGS-for-runc-and-remove-re.patch b/recipes-containers/runc/files/0001-Makefile-respect-GOBUILDFLAGS-for-runc-and-remove-re.patch
index 79e63322..4d35e58e 100644
--- a/recipes-containers/runc/files/0001-Makefile-respect-GOBUILDFLAGS-for-runc-and-remove-re.patch
+++ b/recipes-containers/runc/files/0001-Makefile-respect-GOBUILDFLAGS-for-runc-and-remove-re.patch
@@ -1,7 +1,7 @@
1From 0fe50d2ca4517f5e3070585040f35ace413acd44 Mon Sep 17 00:00:00 2001 1From 0fe50d2ca4517f5e3070585040f35ace413acd44 Mon Sep 17 00:00:00 2001
2From: Bruce Ashfield <bruce.ashfield@gmail.com> 2From: Bruce Ashfield <bruce.ashfield@gmail.com>
3Date: Tue, 24 Aug 2021 11:38:23 -0400 3Date: Tue, 24 Aug 2021 11:38:23 -0400
4Subject: [PATCH] Makefile: respect GOBUILDFLAGS for runc and remove recvtty 4Subject: [PATCH] Makefile: respect GOBUILDFLAGS for runc and remove recvtty
5 from static 5 from static
6 6
7Signed-off-by: Chen Qi <Qi.Chen@windriver.com> 7Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
@@ -11,20 +11,16 @@ Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
11 Makefile | 3 +-- 11 Makefile | 3 +--
12 1 file changed, 1 insertion(+), 2 deletions(-) 12 1 file changed, 1 insertion(+), 2 deletions(-)
13 13
14diff --git a/Makefile b/Makefile 14Index: git/src/import/Makefile
15index e3af9bc1..f9d6de96 100644 15===================================================================
16--- a/Makefile 16--- git.orig/src/import/Makefile
17+++ b/Makefile 17+++ git/src/import/Makefile
18@@ -24,8 +24,7 @@ ifneq (,$(filter $(GOARCH),386 amd64 arm arm64 ppc64le riscv64 s390x)) 18@@ -20,7 +20,7 @@
19 GO_BUILDMODE := "-buildmode=pie" 19 endif
20 endif 20 endif
21 endif 21 endif
22-GO_BUILD := $(GO) build -trimpath $(GO_BUILDMODE) \ 22-GO_BUILD := $(GO) build -trimpath $(GO_BUILDMODE) $(EXTRA_FLAGS) -tags "$(BUILDTAGS)" \
23- $(EXTRA_FLAGS) -tags "$(BUILDTAGS)" \
24+GO_BUILD := $(GO) build $(GOBUILDFLAGS) -trimpath $(GO_BUILDMODE) $(EXTRA_FLAGS) -tags "$(BUILDTAGS)" \ 23+GO_BUILD := $(GO) build $(GOBUILDFLAGS) -trimpath $(GO_BUILDMODE) $(EXTRA_FLAGS) -tags "$(BUILDTAGS)" \
25 -ldflags "$(LDFLAGS_COMMON) $(EXTRA_LDFLAGS)" 24 -ldflags "-X main.gitCommit=$(COMMIT) -X main.version=$(VERSION) $(EXTRA_LDFLAGS)"
26 25 GO_BUILD_STATIC := CGO_ENABLED=1 $(GO) build -trimpath $(EXTRA_FLAGS) -tags "$(BUILDTAGS) netgo osusergo" \
27 GO_BUILDMODE_STATIC := 26 -ldflags "-extldflags -static -X main.gitCommit=$(COMMIT) -X main.version=$(VERSION) $(EXTRA_LDFLAGS)"
28--
292.40.0
30