aboutsummaryrefslogtreecommitdiffstats
path: root/community/go/default-buildmode-pie.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-11-22 14:28:29 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-11-22 15:20:21 +0000
commitb46a3d4f3d260cbe26431d5da6bf5b1be3ba01f1 (patch)
treefe0950e9d679c5d05c3fd35aaf801a4493cdbfa4 /community/go/default-buildmode-pie.patch
parenta91795a4c8120e1837aeb72307690b4b118ce313 (diff)
downloadaports-b46a3d4f3d260cbe26431d5da6bf5b1be3ba01f1.tar.bz2
aports-b46a3d4f3d260cbe26431d5da6bf5b1be3ba01f1.tar.xz
Revert "community/go: Fix the `cannot find runtime/cgo`-warning"
This change broke building of various packages, like docker and gomplate. This reverts commit 9686793792a2c40a872ebbb2b86fa537f22491ad.
Diffstat (limited to 'community/go/default-buildmode-pie.patch')
-rw-r--r--community/go/default-buildmode-pie.patch21
1 files changed, 5 insertions, 16 deletions
diff --git a/community/go/default-buildmode-pie.patch b/community/go/default-buildmode-pie.patch
index 1924a483f2..3cf4865a78 100644
--- a/community/go/default-buildmode-pie.patch
+++ b/community/go/default-buildmode-pie.patch
@@ -1,19 +1,8 @@
-diff -upr go.orig/src/cmd/go/internal/load/pkg.go go/src/cmd/go/internal/load/pkg.go
---- go.orig/src/cmd/go/internal/load/pkg.go 2018-08-24 22:38:35.000000000 +0200
-+++ go/src/cmd/go/internal/load/pkg.go 2018-09-06 22:18:36.756408760 +0200
-@@ -1578,7 +1578,7 @@ func LinkerDeps(p *Package) []string {
- func externalLinkingForced(p *Package) bool {
- // Some targets must use external linking even inside GOROOT.
- switch cfg.BuildContext.GOOS {
-- case "android":
-+ case "android", "linux":
- return true
- case "darwin":
- switch cfg.BuildContext.GOARCH {
-diff -upr go.orig/src/cmd/go/internal/work/init.go go/src/cmd/go/internal/work/init.go
---- go.orig/src/cmd/go/internal/work/init.go 2018-08-24 22:38:35.000000000 +0200
-+++ go/src/cmd/go/internal/work/init.go 2018-09-06 22:18:03.942821296 +0200
-@@ -123,7 +123,8 @@ func buildModeInit() {
+diff --git a/src/cmd/go/internal/work/init.go b/src/cmd/go/internal/work/init.go
+index 7f894f5..a37cbf3 100644
+--- a/src/cmd/go/internal/work/init.go
++++ b/src/cmd/go/internal/work/init.go
+@@ -111,7 +111,8 @@ func buildModeInit() {
ldBuildmode = "c-shared"
case "default":
switch platform {