1
0
mirror of https://github.com/golang/go synced 2024-11-20 04:54:44 -07:00
go/src
Dave Cheney 3167c12eb2 cmd/dist: support building on debian/kFreeBSD
The debian/kFreeBSD project uses the FreeBSD kernel and the debian userspace. From our point of view, this is freebsd not linux as GOOS talks about the kernel syscall interface, not the userspace (although cgo alters that). As debian/kFreeBSD is experimental at this time, I do not think it is worth the effort of duplicating all the freebsd specific code so this is proposal represents a reasonable workaround.

Currently cgo is not supported, make.bash will detect this and disable cgo automatically during the build.

dfc@debian:~/go/src$ uname -a
GNU/kFreeBSD debian 8.1-1-686 #0 Sat Jul 21 17:02:04 UTC 2012 i686 i386 Intel(R) Core(TM) i5-2415M CPU @ 2.30GHz GNU/kFreeBSD
dfc@debian:~/go/src$ ../bin/go version
go version devel +d05272f402ec Sat Dec 01 15:15:14 2012 -0800

Tested with GOOS=freebsd GOARCH=386

R=golang-dev
CC=golang-dev
https://golang.org/cl/6868046
2012-12-04 08:27:30 +11:00
..
cmd cmd/dist: support building on debian/kFreeBSD 2012-12-04 08:27:30 +11:00
lib9 lib9: remove unreferenced externs and getuser() 2012-11-08 09:39:24 -05:00
libbio
libmach libmach, cmd/cc, cmd/cov, cmd/ld, cmd/prof: check malloc return value 2012-11-27 03:05:46 +08:00
pkg bytes: avoid duplicate malloc/copy in Buffer.ReadString 2012-12-03 14:04:18 +01:00
all.bash
all.bat src/all.bat: fix banner 2012-09-20 00:58:34 +08:00
all.rc
clean.bash
clean.bat
clean.rc
make.bash cmd/dist: support building on debian/kFreeBSD 2012-12-04 08:27:30 +11:00
make.bat lib9, cmd/dist, cmd/5l: embed GOARM into cmd/5l and auto detect GOARM 2012-10-22 14:26:36 +08:00
Make.dist
make.rc
run.bash run.bash: fix linux/arm build 2012-11-15 13:59:46 +11:00
run.bat run.{bash,bat,rc}: unset GOMAXPROCS before ../test 2012-11-15 11:40:10 +11:00
run.rc run.{bash,bat,rc}: unset GOMAXPROCS before ../test 2012-11-15 11:40:10 +11:00
sudo.bash sudo.bash: diagnose when the go tool is not in $PATH 2012-11-15 10:42:39 -08:00