From 3197be48078311368d5a37a89c61bbd47e00622f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 29 Mar 2013 16:33:35 -0700 Subject: cmd/dist, cmd/ld: GO_EXTLINK_ENABLED=0 defaults to -linkmode=internal Change build system to set GO_EXTLINK_ENABLED=0 by default for OS X 10.6, since the system linker has a bug and can not handle the object files generated by 6l. Fixes #5130. R=golang-dev, r CC=golang-dev https://golang.org/cl/8183043 --- src/make.bash | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/make.bash') diff --git a/src/make.bash b/src/make.bash index 2d83b6f4d1..8d0f6ebaea 100755 --- a/src/make.bash +++ b/src/make.bash @@ -30,6 +30,11 @@ # to include all cgo related files, .c and .go file with "cgo" # build directive, in the build. Set it to 0 to ignore them. # +# GO_EXTLINK_ENABLED: Set to 1 to invoke the host linker when building +# packages that use cgo. Set to 0 to do all linking internally. This +# controls the default behavior of the linker's -linkmode option. The +# default value depends on the system. +# # CC: Command line to run to get at host C compiler. # Default is "gcc". Also supported: "clang". -- cgit v1.3-5-g9baa