[pkg-golang-devel] Bug#776401: A Solution: Cross-built, CGO-enabled runtime libraries in a separate package
Hilko Bengen
bengen at debian.org
Sun Apr 24 23:50:40 UTC 2016
Hi,
https://github.com/hillu/golang-go-cross contains a source package that
can be used to build (from sources taken from the golang-src package)
the extra bits needed for cross-compiling and using "go install" even on
source code that uses CGO.
The simple example I gave on February 3 now works:
GOPATH=`pwd`/gopath GOOS=windows GOARCH=386 CGO_ENABLED=1 CC=i686-w64-mingw32-gcc go install -v -x example.org/foo
I would love to see this integrated into our golang package.
Cheers,
-Hilko
More information about the pkg-golang-devel
mailing list