go_1_5: set CGO_ENABLED=0 to cope with binutils 2.27 version bump

See 6eb4014874 and
https://github.com/golang/go/issues/16906.

cc @obadz @cstrahan @edolstra @lancelotsix @globin
This commit is contained in:
Franz Pletz 2016-08-29 02:54:33 +02:00
parent e17bc25943
commit 675848419e
No known key found for this signature in database
GPG key ID: 846FDED7792617B4

View file

@ -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