]> Cypherpunks repositories - gostls13.git/commit
misc/cgo: enable testso and testsovar on aix/ppc64
authorClément Chigot <clement.chigot@atos.net>
Tue, 26 Mar 2019 14:00:00 +0000 (15:00 +0100)
committerIan Lance Taylor <iant@golang.org>
Wed, 27 Mar 2019 17:21:28 +0000 (17:21 +0000)
commit53c9c068115168ebcc1e649fa7a15a804a99d92f
treeb4e7d240beedbfad3db16ceb742fb5d9130a8ebf
parentc7f7f59368c3a964b8214018dc5100806b243938
misc/cgo: enable testso and testsovar on aix/ppc64

On AIX, shared objects must be wrapped under an archive file.

For testso, creating libcgosotest with an extern symbol isn't
AIX-friendly. By default, ld will block such behavior. Rather than
forcing ld to work as on Linux and using the run-time linking,
goCallback became a function pointer which is set by setCallback().

Updates #30565

Change-Id: I455ab32faddd41f1b0c84cc9e503788044ad49b2
Reviewed-on: https://go-review.googlesource.com/c/go/+/169020
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/testso/so_test.go
misc/cgo/testso/testdata/cgoso.c
misc/cgo/testso/testdata/cgoso.go
misc/cgo/testso/testdata/cgoso_c.c
misc/cgo/testso/testdata/cgoso_unix.go
misc/cgo/testsovar/so_test.go
misc/cgo/testsovar/testdata/cgoso.go