L
L
levisl2015-04-28 17:05:45
go
levisl, 2015-04-28 17:05:45

How to set up golang cross compilation?

Development system - OS X.
System on which to run - rhel5/6
go-1.4.2 Is it
possible to use cross-compilation using the native compiler (without gcc, clang and others)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey K, 2015-04-28
@lelvisl

habrahabr.ru/post/249449

U
uvelichitel, 2015-04-28
@uvelichitel Curated by Go Tag

I collect master branch from sources on darwin (git checkout master) and not relis go1.4.2. In master for a couple of months for cross-compilation , no additional movements are needed at all for cross-compilation . Just%GOOS=linux go install mypackage

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question