Commit 728c16cf authored by Christopher Nielsen's avatar Christopher Nielsen Committed by Russ Cox

build: Changes to the build infrastructure for NetBSD.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5476048
parent d56ca13c
......@@ -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.
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -19,6 +19,9 @@ GOFILES_darwin=\
GOFILES_linux=\
type_unix.go
GOFILES_netbsd=\
type_unix.go
GOFILES_openbsd=\
type_unix.go
......
......@@ -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\
......
......@@ -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\
......
......@@ -17,6 +17,9 @@ GOFILES_darwin=\
GOFILES_linux=\
lp_unix.go\
GOFILES_netbsd=\
lp_unix.go\
GOFILES_openbsd=\
lp_unix.go\
......
......@@ -18,6 +18,9 @@ GOFILES_darwin=\
GOFILES_linux=\
path_unix.go
GOFILES_netbsd=\
path_unix.go
GOFILES_openbsd=\
path_unix.go
......
......@@ -39,6 +39,9 @@ OFILES_freebsd=\
OFILES_linux=\
lock_futex.$O\
OFILES_netbsd=\
lock_sema.$O\
OFILES_openbsd=\
lock_sema.$O\
......
......@@ -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\
......
......@@ -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\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment