-
Notifications
You must be signed in to change notification settings - Fork 17.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cgo: static variables are not initialised correctly on darwin/amd64 #1559
Labels
Comments
For linux/386 (Ubuntu 10.04) at Go hg id 8d78d5e69093 tip, /tstcgo$ gotest rm -f _test/tst-go.nowhere.com/tst.a _gotest_.8 8g -o _gotest_.8 tst.cgo1.go _cgo_gotypes.go tst_test.go 8c -FVw -I/home/peter/go/pkg/linux_386 _cgo_defun.c 8c -FVw _cgo_import.c rm -f _test/tst-go.nowhere.com/tst.a gopack grc _test/tst-go.nowhere.com/tst.a _gotest_.8 _cgo_defun.8 _cgo_import.8 callback.o tst.cgo2.o _cgo_export.o (nil) (nil) (nil) (nil) (nil) (nil) (nil) (nil) (nil) (nil) PASS |
For linux/386 (Ubuntu 10.04) at Go hg id 8d78d5e69093 tip, /tstcgo$ gotest rm -f _test/tst-go.nowhere.com/tst.a _gotest_.8 8g -o _gotest_.8 tst.cgo1.go _cgo_gotypes.go tst_test.go 8c -FVw -I/home/peter/go/pkg/linux_386 _cgo_defun.c 8c -FVw _cgo_import.c rm -f _test/tst-go.nowhere.com/tst.a gopack grc _test/tst-go.nowhere.com/tst.a _gotest_.8 _cgo_defun.8 _cgo_import.8 callback.o tst.cgo2.o _cgo_export.o (nil) (nil) (nil) (nil) (nil) (nil) (nil) (nil) (nil) (nil) PASS |
For linux/amd64 (Ubuntu 10.04) at Go hg id b5479d8005d6 tip, tstcgo$ gotest rm -f _test/tst-go.nowhere.com/tst.a _gotest_.6 CGOPKGPATH=tst-go.nowhere.com cgo -- tst.go touch _cgo_run 6g -o _gotest_.6 tst.cgo1.go _cgo_gotypes.go tst_test.go 6c -FVw -I/home/peter/go/pkg/linux_amd64 _cgo_defun.c gcc -m64 -g -fPIC -O2 -o _cgo_main.o -c _cgo_main.c gcc -m64 -g -fPIC -O2 -o callback.o -c callback.c gcc -m64 -g -fPIC -O2 -o tst.cgo2.o -c tst.cgo2.c gcc -m64 -g -fPIC -O2 -o _cgo_export.o -c _cgo_export.c gcc -m64 -g -fPIC -O2 -o _cgo1_.o _cgo_main.o callback.o tst.cgo2.o _cgo_export.o cgo -dynimport _cgo1_.o >__cgo_import.c && mv -f __cgo_import.c _cgo_import.c 6c -FVw _cgo_import.c rm -f _test/tst-go.nowhere.com/tst.a gopack grc _test/tst-go.nowhere.com/tst.a _gotest_.6 _cgo_defun.6 _cgo_import.6 callback.o tst.cgo2.o _cgo_export.o (nil) (nil) (nil) (nil) (nil) (nil) (nil) (nil) (nil) (nil) PASS |
Owner changed to r...@golang.org. Status changed to Accepted. |
This issue was closed by revision cf3323f. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Attachments:
The text was updated successfully, but these errors were encountered: