aboutsummaryrefslogtreecommitdiffstats
path: root/community/go/default-buildmode-pie.patch
blob: cc8aef0ad075cd02346fed2572caf198de81293c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff -upr src/go.orig/src/cmd/go/internal/work/build.go src/go/src/cmd/go/internal/work/build.go
--- go.orig/src/cmd/go/internal/work/build.go	2017-08-27 17:38:26.354750979 +0200
+++ go/src/cmd/go/internal/work/build.go	2017-08-27 17:40:27.555130105 +0200
@@ -304,7 +304,8 @@ func BuildModeInit() {
 		ldBuildmode = "c-shared"
 	case "default":
 		switch platform {
-		case "android/arm", "android/arm64", "android/amd64", "android/386":
+		case "linux/386", "linux/amd64", "linux/arm", "linux/arm64", "linux/ppc64le", "linux/s390x",
+			"android/arm", "android/arm64", "android/amd64", "android/386":
 			codegenArg = "-shared"
 			ldBuildmode = "pie"
 		case "darwin/arm", "darwin/arm64":