aboutsummaryrefslogblamecommitdiffstats
path: root/community/go/default-buildmode-pie.patch
blob: 3cf4865a787c80bf3ca9779909183bfde52b4eeb (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                                                


                                        
                                                                                    

                                                                                                            

                                              
                                                  
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 {
-		case "android/arm", "android/arm64", "android/amd64", "android/386":
+		case "linux/amd64", "linux/arm", "linux/arm64", "linux/386", "linux/ppc64le", "linux/s390x",
+			"android/amd64", "android/arm", "android/arm64", "android/386":
 			codegenArg = "-shared"
 			ldBuildmode = "pie"
 		case "darwin/arm", "darwin/arm64":