From 0e694298e9e5d6565b285f48860f73626d6705ff Mon Sep 17 00:00:00 2001 From: Benny Siegert Date: Thu, 10 Jul 2014 14:35:04 -0700 Subject: [PATCH] cmd/go: do not fail if libgcc does not exist (This is a patch from the pkgsrc Go package.) LGTM=iant R=golang-codereviews, iant, joerg.sonnenberger, dave CC=golang-codereviews, joerg https://golang.org/cl/108340043 --- src/cmd/go/build.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/go/build.go b/src/cmd/go/build.go index 7eb9841dae..9f36c18f01 100644 --- a/src/cmd/go/build.go +++ b/src/cmd/go/build.go @@ -1951,9 +1951,9 @@ func (b *builder) libgcc(p *Package) (string, error) { return "$LIBGCC", nil } - // clang might not be able to find libgcc, and in that case, + // The compiler might not be able to find libgcc, and in that case, // it will simply return "libgcc.a", which is of no use to us. - if strings.Contains(gccCmd[0], "clang") && !filepath.IsAbs(string(f)) { + if !filepath.IsAbs(string(f)) { return "", nil } -- 2.48.1