From 6eb40148742de9010f2f7f6eec26df15f54e9afc Mon Sep 17 00:00:00 2001 From: obadz Date: Sun, 28 Aug 2016 13:26:19 +0100 Subject: [PATCH] go_1_4: set CGO_ENABLED=0 to cope with binutils 2.27 version bump See also https://github.com/golang/go/issues/16906 cc @cstrahan @edolstra @lancelotsix @globin @fpletz --- pkgs/development/compilers/go/1.4.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/compilers/go/1.4.nix b/pkgs/development/compilers/go/1.4.nix index 5b6af31d684f..273d768ce21f 100644 --- a/pkgs/development/compilers/go/1.4.nix +++ b/pkgs/development/compilers/go/1.4.nix @@ -100,7 +100,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; # The go build actually checks for CC=*/clang and does something different, so we don't # just want the generic `cc` here.