diff options
author | Eivind Uggedal <eivind@uggedal.com> | 2015-09-30 08:31:02 +0000 |
---|---|---|
committer | Eivind Uggedal <eivind@uggedal.com> | 2015-09-30 08:31:02 +0000 |
commit | 394aeb733e12eef9fc309fb8753c28d6095f4551 (patch) | |
tree | 22c62a0dd2190ad346496169e797ea21d5379de0 /community/go/no-pic.patch | |
parent | 675a55b3a13ee4daef9e7a10f9ff9ae3c640e4d0 (diff) | |
download | aports-394aeb733e12eef9fc309fb8753c28d6095f4551.tar.bz2 aports-394aeb733e12eef9fc309fb8753c28d6095f4551.tar.xz |
community/go: moved from main
Diffstat (limited to 'community/go/no-pic.patch')
-rw-r--r-- | community/go/no-pic.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/community/go/no-pic.patch b/community/go/no-pic.patch new file mode 100644 index 0000000000..5a4e3966d6 --- /dev/null +++ b/community/go/no-pic.patch @@ -0,0 +1,16 @@ +diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go +index 8ccbec9dd634..4e96bfadc260 100644 +--- a/src/cmd/link/internal/ld/lib.go ++++ b/src/cmd/link/internal/ld/lib.go +@@ -1071,6 +1071,11 @@ func hostlink() { + argv = append(argv, peimporteddlls()...) + } + ++ // The Go linker does not currently support building PIE ++ // executables when using the external linker. See: ++ // https://github.com/golang/go/issues/6940 ++ argv = append(argv, "-fno-PIC") ++ + if Debug['v'] != 0 { + fmt.Fprintf(&Bso, "host link:") + for _, v := range argv { |