1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/go-bootstrap/no-pic.patch
2015-09-30 08:31:12 +00:00

14 lines
349 B
Diff

--- 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();