This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: libgo patch committed: Update to Go 1.4
- From: Ian Lance Taylor <iant at golang dot org>
- To: Rainer Orth <ro at cebitec dot uni-bielefeld dot de>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, "gofrontend-dev at googlegroups dot com" <gofrontend-dev at googlegroups dot com>
- Date: Mon, 19 Jan 2015 21:00:34 -0800
- Subject: Re: libgo patch committed: Update to Go 1.4
- Authentication-results: sourceware.org; auth=none
- References: <CAOyqgcW7+8ZXASWH4CLuK3zWEOb8zu8Lx0oeqTzaABOWFQKBxQ at mail dot gmail dot com> <yddwq4oqa5e dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE> <CAOyqgcXD6vkFT1J1nTXVOEDyH=t9vudMBnBPwWvxnmDvd3_6Cg at mail dot gmail dot com> <yddlhkzoth6 dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE>
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