From: Benny Siegert Date: Thu, 10 Jul 2014 21:35:04 +0000 (-0700) Subject: cmd/go: do not fail if libgcc does not exist X-Git-Tag: go1.4beta1~1113 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0e694298e9e5d6565b285f48860f73626d6705ff;p=gostls13.git 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 --- 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 }