summaryrefslogtreecommitdiffstats
path: root/recipes-networking/netns/files/Makefile-force-rebuilding-all-packages-to-avoid-cgo.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-networking/netns/files/Makefile-force-rebuilding-all-packages-to-avoid-cgo.patch')
-rw-r--r--recipes-networking/netns/files/Makefile-force-rebuilding-all-packages-to-avoid-cgo.patch26
1 files changed, 15 insertions, 11 deletions
diff --git a/recipes-networking/netns/files/Makefile-force-rebuilding-all-packages-to-avoid-cgo.patch b/recipes-networking/netns/files/Makefile-force-rebuilding-all-packages-to-avoid-cgo.patch
index 3b0c0a46..3ed4c21e 100644
--- a/recipes-networking/netns/files/Makefile-force-rebuilding-all-packages-to-avoid-cgo.patch
+++ b/recipes-networking/netns/files/Makefile-force-rebuilding-all-packages-to-avoid-cgo.patch
@@ -1,4 +1,4 @@
1From 09524d187ef108784c854a0c247ac6476a10bb67 Mon Sep 17 00:00:00 2001 1From fa402247e9b24470648a366cfda1c9134660146a Mon Sep 17 00:00:00 2001
2From: Mark Asselstine <mark.asselstine@windriver.com> 2From: Mark Asselstine <mark.asselstine@windriver.com>
3Date: Mon, 18 Mar 2019 14:04:16 -0400 3Date: Mon, 18 Mar 2019 14:04:16 -0400
4Subject: [PATCH] Makefile: force rebuilding all packages to avoid cgo 4Subject: [PATCH] Makefile: force rebuilding all packages to avoid cgo
@@ -32,23 +32,27 @@ used.
32Upstream-Status: Inappropriate [only an issue with our builds] 32Upstream-Status: Inappropriate [only an issue with our builds]
33 33
34Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> 34Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
35
36Forward-ported to v0.5.3.
37
38Signed-off-by: Paul Barker <paul@betafive.co.uk>
35--- 39---
36 Makefile | 2 +- 40 basic.mk | 2 +-
37 1 file changed, 1 insertion(+), 1 deletion(-) 41 1 file changed, 1 insertion(+), 1 deletion(-)
38 42
39diff --git a/Makefile b/Makefile 43diff --git a/basic.mk b/basic.mk
40index 476cb9b..ecd0df4 100644 44index 187dff3..fb080b7 100644
41--- a/src/import/Makefile 45--- a/src/import/basic.mk
42+++ b/src/import/Makefile 46+++ b/src/import/basic.mk
43@@ -41,7 +41,7 @@ $(NAME): *.go VERSION.txt 47@@ -50,7 +50,7 @@ $(NAME): $(wildcard *.go) $(wildcard */*.go) VERSION.txt
44 .PHONY: static 48 .PHONY: static
45 static: ## Builds a static executable 49 static: prebuild ## Builds a static executable.
46 @echo "+ $@" 50 @echo "+ $@"
47- CGO_ENABLED=0 $(GO) build \ 51- CGO_ENABLED=$(CGO_ENABLED) $(GO) build \
48+ CGO_ENABLED=0 $(GO) build -a -pkgdir dontusecurrentpkgs \ 52+ CGO_ENABLED=$(CGO_ENABLED) $(GO) build -a -pkgdir dontusecurrentpkgs \
49 -tags "$(BUILDTAGS) static_build" \ 53 -tags "$(BUILDTAGS) static_build" \
50 ${GO_LDFLAGS_STATIC} -o $(NAME) . 54 ${GO_LDFLAGS_STATIC} -o $(NAME) .
51 55
52-- 56--
532.7.4 572.17.1
54 58