]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: do not fail if libgcc does not exist
authorBenny Siegert <bsiegert@gmail.com>
Thu, 10 Jul 2014 21:35:04 +0000 (14:35 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 10 Jul 2014 21:35:04 +0000 (14:35 -0700)
(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

index 7eb9841daefd6d2011b0bd90402f1bb3f7139157..9f36c18f01bff2409474da3a74e65c732fdb6f04 100644 (file)
@@ -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
        }