aboutsummaryrefslogtreecommitdiffstats
path: root/main/go/no-pic.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-04-15 11:14:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-04-15 11:14:34 +0000
commit496d35cebf920bed938a4cde8995e43bfc693d21 (patch)
treef20d4d0a2077074d6a549ad229860cd8ce0290d7 /main/go/no-pic.patch
parent886cdb13df9d53858fead63397547357770eb638 (diff)
downloadaports-496d35cebf920bed938a4cde8995e43bfc693d21.tar.bz2
aports-496d35cebf920bed938a4cde8995e43bfc693d21.tar.xz
main/go: moved from testing
Diffstat (limited to 'main/go/no-pic.patch')
-rw-r--r--main/go/no-pic.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/main/go/no-pic.patch b/main/go/no-pic.patch
new file mode 100644
index 0000000000..633dd9a1cf
--- /dev/null
+++ b/main/go/no-pic.patch
@@ -0,0 +1,14 @@
+--- a/src/cmd/ld/lib.c
++++ b/src/cmd/ld/lib.c
+@@ -786,6 +786,11 @@ hostlink(void)
+ p = strchr(p + 1, ' ');
+ }
+
++ // The Go linker does not currently support building objects that
++ // may be linked into a PIE. See:
++ // https://code.google.com/p/go/issues/detail?id=6940
++ argv[argc++] = "-fno-PIC";
++
+ argv[argc] = nil;
+
+ quotefmtinstall();