From d3e61747da7f27c5dd67a514ff533be54df95b85 Mon Sep 17 00:00:00 2001
From: Brad Fitzpatrick
Date: Tue, 26 Jan 2016 22:56:08 +0000
Subject: [PATCH] doc: mention the need for a C compiler for cgo support
Fixes #13954
Change-Id: I4c01e9bb3fb08e8b9fa14d4c59b7ea824ba3f0c9
Reviewed-on: https://go-review.googlesource.com/18937
Reviewed-by: Ian Lance Taylor
Reviewed-by: Rob Pike
---
doc/install-source.html | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/doc/install-source.html b/doc/install-source.html
index 7c1194a22c6..332c72097ea 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