Hi Iain, >> I don't think you need concern yourself with this very much: it's just a >> hack around a Solaris ld bug, suggested by the Solaris linker engineers >> for the moment. Once the dlpi_tls_modid patch lands in Solaris 11.5 >> (this week or next), I'll ask if they see a chance to have that bug >> fixed in time for the Solaris 11.5 release. If so, nobody besides >> myself will ever be exposed to this issue. >> > > I've just given building gcc a try in an OpenIndiana VM, and get the > following: > > ld: fatal: option -z has illegal argument 'relax=transtls' > ld: fatal: flags processing errors > collect2: error: ld returned 1 exit status > > $ ld --version > ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1756 > (illumos) > > My fatal mistake of course was not configuring with > --with-ld=/usr/gnu/bin/ld, however it is notable that not all Solaris > linkers support this relax=transtls option.
indeed. I don't have the time to try Illumos derivatives myself, but looking closer that -z relax=transtls was neither in OpenSolaris (and thus isn't in Illumos either) nor in Solaris 11.0. Must have been introduced at some later point, but it's certainly present in Solaris 11.3, the oldest version I can easily try. There are two options here: * Either Illumos has already fixed the ld bug worked around by -z transtls. Then the absence of the option doesn't matter and things will work fine. * Otherwise (and independently of the Illumos situation) I'll add a check for Solaris ld supporting the option instead of using it unconditionally. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University