https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56431
--- Comment #8 from Ian Lance Taylor <ian at airs dot com> --- The workaround for this is probably to change gcc/go/gospec.c to remove the need_thread variable. That would have the effect of changing the only use of need_thread to only test library > 0, which would mean that gccgo would add -lpthread every time it adds -lgo. (I don't plan to try implementing and testing this myself.)