From 675848419e9ebead75a5ed114aff001ad893df27 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Mon, 29 Aug 2016 02:54:33 +0200 Subject: [PATCH] go_1_5: set CGO_ENABLED=0 to cope with binutils 2.27 version bump See 6eb40148742de9010f2f7f6eec26df15f54e9afc and https://github.com/golang/go/issues/16906. cc @obadz @cstrahan @edolstra @lancelotsix @globin --- pkgs/development/compilers/go/1.5.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/compilers/go/1.5.nix b/pkgs/development/compilers/go/1.5.nix index e6060f3ecec6..03caec9c3b48 100644 --- a/pkgs/development/compilers/go/1.5.nix +++ b/pkgs/development/compilers/go/1.5.nix @@ -107,7 +107,7 @@ stdenv.mkDerivation rec { else throw "Unsupported system"; GOARM = stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "5"; GO386 = 387; # from Arch: don't assume sse2 on i686 - CGO_ENABLED = 1; + CGO_ENABLED = 0; GOROOT_BOOTSTRAP = "${goBootstrap}/share/go"; # The go build actually checks for CC=*/clang and does something different, so we don't