]> Cypherpunks repositories - gostls13.git/commitdiff
build: Changes to the build infrastructure for NetBSD.
authorChristopher Nielsen <m4dh4tt3r@gmail.com>
Mon, 12 Dec 2011 20:42:06 +0000 (15:42 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 12 Dec 2011 20:42:06 +0000 (15:42 -0500)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5476048

12 files changed:
src/Make.inc
src/cmd/cov/Makefile
src/cmd/prof/Makefile
src/pkg/crypto/tls/Makefile
src/pkg/mime/Makefile
src/pkg/net/Makefile
src/pkg/os/Makefile
src/pkg/os/exec/Makefile
src/pkg/path/filepath/Makefile
src/pkg/runtime/Makefile
src/pkg/syscall/Makefile
src/pkg/time/Makefile

index c770b7632780b3c90e6195216b60ce25bdebdb32..7b4ccd0aeeb90d4edc90d34c601cfb9ddf8a9f0d 100644 (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.
index 62836fcacb638c6da91303f8e1d37ee3f407f1af..c080f4a284d518cd04314179defcda880e238cb2 100644 (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
 
index 6cefceb8ed7c1bc088968e204020f416faf6c853..292a6482a22978409a5f4b4deccaab760a7cfc22 100644 (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
 
index 3914484730c7c1906d663699679fe3e356701dea..5cda149ddc31d4d22d4e82408a608613c83e8db6 100644 (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
index aec5560b9ecb314c3401f40dc43518ec7ac81338..38d809c1c1d942a79446a985415e441318cdda33 100644 (file)
@@ -19,6 +19,9 @@ GOFILES_darwin=\
 GOFILES_linux=\
        type_unix.go
 
+GOFILES_netbsd=\
+       type_unix.go
+
 GOFILES_openbsd=\
        type_unix.go
 
index eba9e26d9d5afffc9c2611b2df675ec640f4841f..bae7e5d521e028737e51fa36853bc0990a7e1074 100644 (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\
index 9bb2c0cbf157451bfd791a4787ed2197491a595b..7f756cbd8efd4c5d3b5d48a411053f5dd60299a3 100644 (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\
index ff86a58f552f8b07c06556b6adb1e655ee8d82c6..e67dfba9fe31fabc08a49acf32c95b1928c9b343 100644 (file)
@@ -17,6 +17,9 @@ GOFILES_darwin=\
 GOFILES_linux=\
        lp_unix.go\
 
+GOFILES_netbsd=\
+       lp_unix.go\
+
 GOFILES_openbsd=\
        lp_unix.go\
 
index af250ab330d897b578404d4285d544a2b862332c..7f8ea308c7e1d9fd2bfe906a0190feb0bb1a4e6f 100644 (file)
@@ -18,6 +18,9 @@ GOFILES_darwin=\
 GOFILES_linux=\
        path_unix.go
 
+GOFILES_netbsd=\
+       path_unix.go
+
 GOFILES_openbsd=\
        path_unix.go
 
index 406c40e25e0c53a43f799094fafacac210bc79fe..c390040c45b0bcc291a7d23e45aa94f0e7e91f70 100644 (file)
@@ -39,6 +39,9 @@ OFILES_freebsd=\
 OFILES_linux=\
        lock_futex.$O\
 
+OFILES_netbsd=\
+       lock_sema.$O\
+
 OFILES_openbsd=\
        lock_sema.$O\
 
index 38e73cdb01c6a523e9635ed8b2ea5b878f32fb80..f6494eaa74002dba8ffc170e3b36b6af0214508b 100644 (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\
index 24a18747f55cf0a88a77235a08236856f69f424b..28c6afc537997f852565067b732847f521dfde42 100644 (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\