golang/macros.golang
Vincent Batts be393a2148 arch bootstrapping and macros
now providing the bootstrapping to allow compiles for all golang
supported architectures, from fedora.
'yum install go' or 'yum install golang' will pull in only the bits
needed for host architecture compiles, but then you could add
'golang-pkg-darwin-amd64' rpm, and build your golang project source
like:

	$> go build myapp.go
	$> file ./myapp
	./myapp: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), statically linked, not stripped
	$> GOOS=darwin GOARCH=amd64 go build myapp.go
	$> file ./myapp
	./myapp: Mach-O 64-bit x86_64 executable
2014-04-10 13:32:57 -04:00

9 lines
204 B
Plaintext

# Where to set GOPATH for builds. Like:
# export GOPATH=$(pwd)/_build:%{gopath}
%gopath %{_datadir}/gocode
# for use like:
# ExclusiveArch: %{go_arches}
%go_arches %{ix86} x86_64 %{arm}