This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libgo patch committed: Update to Go 1.4


On Mon, Jan 19, 2015 at 4:17 AM, Rainer Orth
<ro@cebitec.uni-bielefeld.de> wrote:
> Ian Lance Taylor <iant@golang.org> writes:
>
>> On Thu, Jan 15, 2015 at 8:30 AM, Rainer Orth
>> <ro@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).

Thanks.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]