Skip to content

Commit 9957918

Browse files
committed
cmd/go/gcc: add patch from Ian
1 parent ac10278 commit 9957918

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cmd/cgo/gcc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,6 +1614,8 @@ func (p *Package) gccCmd() []string {
16141614
c = append(c, "-maix64")
16151615
c = append(c, "-mcmodel=large")
16161616
}
1617+
// disable LTO so we get a real object
1618+
c = append(c, "-fno-lto")
16171619
c = append(c, "-") //read input from standard input
16181620
return c
16191621
}

0 commit comments

Comments
 (0)