diff --git a/doc/install-source.html b/doc/install-source.html index 7c1194a22c..332c72097e 100644 --- a/doc/install-source.html +++ b/doc/install-source.html @@ -173,6 +173,21 @@ follow the instructions on the Git downloads page.

+

(Optional) Install a C compiler

+ +

+To build a Go installation +with cgo support, which permits Go +programs to import C libraries, a C compiler such as gcc +or clang must be installed first. Do this using whatever +installation method is standard on the system. +

+ +

+To build without cgo, set the environment variable +CGO_ENABLED=0 before running all.bash or +make.bash. +

Fetch the repository