diff options
author | Timo Teräs <timo.teras@iki.fi> | 2016-07-07 11:44:55 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-07-07 12:10:15 +0300 |
commit | 9515100a5f4a9ad7b6b1d44a5fb9a7b1a6083aa7 (patch) | |
tree | 02320565bd28bb140ff8ed30d580a2f6facc58ff /community/go/default-buildmode-pie.patch | |
parent | 6321ef7fe6e86df2bd03666e0feaa7bfbf80b52c (diff) | |
download | aports-9515100a5f4a9ad7b6b1d44a5fb9a7b1a6083aa7.tar.bz2 aports-9515100a5f4a9ad7b6b1d44a5fb9a7b1a6083aa7.tar.xz |
community/go: default buildmode=pie
Diffstat (limited to 'community/go/default-buildmode-pie.patch')
-rw-r--r-- | community/go/default-buildmode-pie.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/community/go/default-buildmode-pie.patch b/community/go/default-buildmode-pie.patch new file mode 100644 index 0000000000..034692a098 --- /dev/null +++ b/community/go/default-buildmode-pie.patch @@ -0,0 +1,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: |