aboutsummaryrefslogtreecommitdiffstats
path: root/community/go/default-buildmode-pie.patch
blob: 034692a098553f3a492b921cf615202bb6f3408c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- go/src/cmd/go/build.go.orig	2016-07-07 11:52:03.315793199 +0300
+++ go/src/cmd/go/build.go	2016-04-20 02:50:07.000000000 +0300
@@ -363,7 +363,8 @@
 		ldBuildmode = "c-shared"
 	case "default":
 		switch platform {
+		case "linux/386", "linux/amd64", "linux/arm", "linux/arm64", "linux/ppc64le",
+			"android/amd64", "android/arm", "android/arm64", "android/386":
-		case "android/arm", "android/arm64", "android/amd64", "android/386":
 			codegenArg = "-shared"
 			ldBuildmode = "pie"
 		default: