Ian Lance Taylor <i...@golang.org> writes: > On Mon, Jan 19, 2015 at 4:17 AM, Rainer Orth > <r...@cebitec.uni-bielefeld.de> wrote: >> Ian Lance Taylor <i...@golang.org> writes: >> >>> On Thu, Jan 15, 2015 at 8:30 AM, Rainer Orth >>> <r...@cebitec.uni-bielefeld.de> wrote: >>>> >>>> Apart from that, bootstrap fails in gotools: due to the use of >>>> -static-libgo, all commands there fail to link since the socket >>>> functions are missing. It seems like $LIBS from libgo needs to be added >>>> somewhere, but I'm unsure how best to handle this. To make any progress >>>> at all, I've just manually added -lsocket -lnsl to gotools/Makefile >>>> (AM_LDFLAGS). >>> >>> I also don't know what the best way is to handle this. For now I've >>> just added a configure test to check whether the libraries are needed. >>> Based on the libgo build, as far as I can tell, no other libraries >>> should be needed. >> >> While this is true for Solaris 11, Solaris 10 needs librt for nanosleep, >> sched_yield and the sem_* functions. The following patch copies the >> corresponding libgo test and allows gotools to build even on Solaris 10. > > This is OK to commit with a ChangeLog entry (the gotools directory is > not mirrored and lives only in the GCC repository).
Done with the following: 2015-01-20 Rainer Orth <r...@cebitec.uni-bielefeld.de> * configure.ac: Check if sched_yield and/or nanosleep need -lrt. * configure: Regenerate. * Makefile.am (go$(EXEEXT), gofmt$(EXEEXT), cgo$(EXEEXT)): Link with $(LIBS). * Makefile.in: Regenerate. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University