15.34. go

Possible arguments: (none)

Sets default values and targets used to build Go software. A build-time dependency on lang/go is added. The build process is controlled by several variables:

GO_PKGNAME

The name of the Go package. This is the directory that will be created in GOPATH/src. The default value is ${PORTNAME}.

GO_TARGET

The name of the packages to build. The default value is ${GO_PKGNAME}.

CGO_CFLAGS

Additional CFLAGS values to be passed to the C compiler by go.

CGO_LDFLAGS

Additional LDFLAGS values to be passed to the C compiler by go.

All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/doc/

Questions that are not answered by the documentation may be sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.