PKGBUILDs/community/go/default-buildmode-pie.patch

14 lines
415 B
Diff
Raw Normal View History

2018-02-18 02:58:08 +00:00
diff --git a/src/cmd/go/internal/work/init.go b/src/cmd/go/internal/work/init.go
index 7f894f5..a517887 100644
--- a/src/cmd/go/internal/work/init.go
+++ b/src/cmd/go/internal/work/init.go
2020-02-27 02:14:06 +00:00
@@ -131,7 +131,7 @@ func buildModeInit() {
2017-09-04 14:44:10 +00:00
ldBuildmode = "c-shared"
case "default":
2020-02-27 02:14:06 +00:00
switch cfg.Goos {
- case "android":
+ case "android", "linux":
2017-09-04 14:44:10 +00:00
codegenArg = "-shared"
ldBuildmode = "pie"
2020-02-27 02:14:06 +00:00
case "darwin":