build: Changes to the build infrastructure for NetBSD.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5476048
This commit is contained in:
Christopher Nielsen 2011-12-12 15:42:06 -05:00 committed by Russ Cox
parent d56ca13c03
commit 728c16cf13
12 changed files with 66 additions and 0 deletions

View file

@ -33,6 +33,7 @@ GOOS_LIST=\
darwin\
freebsd\
linux\
netbsd\
openbsd\
plan9\
windows\
@ -138,6 +139,9 @@ endif
ifeq ($(GOOS),openbsd) # ... and not on OpenBSD
CGO_ENABLED:=0
endif
ifeq ($(GOOS),netbsd) # ... and not on NetBSD
CGO_ENABLED:=0
endif
endif
# Make environment more standard.

View file

@ -29,6 +29,7 @@ endif
install: install-$(NAME)
install-linux: install-default
install-freebsd: install-default
install-netbsd: install-default
install-openbsd: install-default
install-windows: install-default

View file

@ -25,6 +25,7 @@ endif
install: install-$(NAME) install-pprof
install-linux: install-default
install-freebsd: install-default
install-netbsd: install-default
install-openbsd: install-default
install-windows: install-default

View file

@ -26,6 +26,7 @@ endif
GOFILES_freebsd+=root_unix.go
GOFILES_linux+=root_unix.go
GOFILES_netbsd+=root_unix.go
GOFILES_openbsd+=root_unix.go
GOFILES_plan9+=root_stub.go
GOFILES_windows+=root_windows.go

View file

@ -19,6 +19,9 @@ GOFILES_darwin=\
GOFILES_linux=\
type_unix.go
GOFILES_netbsd=\
type_unix.go
GOFILES_openbsd=\
type_unix.go

View file

@ -104,6 +104,27 @@ else
GOFILES_linux+=cgo_stub.go
endif
GOFILES_netbsd=\
dnsclient_unix.go\
dnsconfig.go\
fd.go\
fd_$(GOOS).go\
file.go\
interface_bsd.go\
interface_openbsd.go\
iprawsock_posix.go\
ipsock_posix.go\
lookup_unix.go\
newpollserver.go\
port.go\
sendfile_stub.go\
sock.go\
sock_bsd.go\
tcpsock_posix.go\
udpsock_posix.go\
unixsock_posix.go\
cgo_stub.go\
GOFILES_openbsd=\
dnsclient_unix.go\
dnsconfig.go\

View file

@ -50,6 +50,17 @@ GOFILES_linux=\
exec_unix.go\
signal_unix.go\
GOFILES_netbsd=\
dir_unix.go\
error_posix.go\
file_posix.go\
file_unix.go\
path_unix.go\
sys_bsd.go\
exec_posix.go\
exec_unix.go\
signal_unix.go\
GOFILES_openbsd=\
dir_unix.go\
error_posix.go\

View file

@ -17,6 +17,9 @@ GOFILES_darwin=\
GOFILES_linux=\
lp_unix.go\
GOFILES_netbsd=\
lp_unix.go\
GOFILES_openbsd=\
lp_unix.go\

View file

@ -18,6 +18,9 @@ GOFILES_darwin=\
GOFILES_linux=\
path_unix.go
GOFILES_netbsd=\
path_unix.go
GOFILES_openbsd=\
path_unix.go

View file

@ -39,6 +39,9 @@ OFILES_freebsd=\
OFILES_linux=\
lock_futex.$O\
OFILES_netbsd=\
lock_sema.$O\
OFILES_openbsd=\
lock_sema.$O\

View file

@ -45,6 +45,17 @@ GOFILES_linux=\
sockcmsg_unix.go\
syscall_unix.go\
GOFILES_netbsd=\
bpf_bsd.go\
env_unix.go\
exec_unix.go\
route_bsd.go\
route_netbsd.go\
sockcmsg_unix.go\
syscall_bsd.go\
syscall_unix.go\
zsysctl_netbsd.go\
GOFILES_openbsd=\
bpf_bsd.go\
env_unix.go\

View file

@ -25,6 +25,10 @@ GOFILES_linux=\
sys_unix.go\
zoneinfo_unix.go\
GOFILES_netbsd=\
sys_unix.go\
zoneinfo_unix.go\
GOFILES_openbsd=\
sys_unix.go\
zoneinfo_unix.go\