aports/community/go/force-external-link-on-ppc64le.patch
Sören Tempel c0e69baad4 community/go: force external link mode for ppc64le again
This re-enables 866f2e147cfbb06eec9179e7323be6d2f82b5290. While Go
1.18.1 fixed the initial linking error we encountered with Go 1.18
on ppc64le it seems there are two more regressions with -buildmode=pie
and CGO_CFLAGS=-Os. See:

* https://github.com/golang/go/issues/52336
* https://github.com/golang/go/issues/52337

Forcing external link mode seems to be a workaround for now.

Fixes #13692
2022-04-13 19:57:04 +02:00

18 lines
694 B
Diff

See https://github.com/golang/go/issues/51787#issuecomment-1072700785
Re-Enabled for Go 1.18.1, see:
https://gitlab.alpinelinux.org/alpine/aports/-/issues/13692
--- go.orig/src/cmd/link/internal/ld/config.go
+++ go/src/cmd/link/internal/ld/config.go
@@ -212,7 +212,7 @@
// windows/arm64 internal linking is not implemented.
return true, buildcfg.GOOS + "/" + buildcfg.GOARCH + " does not support internal cgo"
}
- if iscgo && ctxt.Arch == sys.ArchPPC64 {
+ if iscgo && (ctxt.Arch == sys.ArchPPC64 || ctxt.Arch == sys.ArchPPC64LE) {
// Big Endian PPC64 cgo internal linking is not implemented for aix or linux.
return true, buildcfg.GOOS + " does not support internal cgo"
}