Skip to content
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

cmd/go: support swig #3258

Closed
gopherbot opened this issue Mar 9, 2012 · 3 comments
Closed

cmd/go: support swig #3258

gopherbot opened this issue Mar 9, 2012 · 3 comments

Comments

@gopherbot
Copy link

by junyer:

Make.pkg used to support both cgo and SWIG. Currently, `go build' supports cgo, but does
not support SWIG.

BTW, would it be possible to do something similar to cgo (maybe using `-dynimport' as
well?) in order to avoid having to ship a shared library with the executable?
@rsc
Copy link
Contributor

rsc commented Mar 9, 2012

Comment 1:

I am not planning SWIG support for Go 1.
Afterward, sure.  The shared libraries will still
be necessary for a little while: we can't handle
C++ object files in the Go linker yet.

Labels changed: added priority-later, removed priority-triage.

Owner changed to builder@golang.org.

Status changed to Accepted.

@ianlancetaylor
Copy link
Contributor

Comment 2:

http://golang.org/cl/5845071 (delayed until after the Go 1 release).
In the long run we should be able to avoid building shared libraries.  We can't do it in
the short run because 6l does not have enough support for C++.  E.g., it doesn't build
global constructors or set up an exception table header.

Owner changed to @ianlancetaylor.

Status changed to Started.

@minux
Copy link
Member

minux commented Aug 11, 2012

Comment 3:

this is fixed by: http://code.google.com/p/go/source/detail?r=422b4a8160bc

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants