This patch is posted just for reference on top of D84029 and D84412.
It's a very first attempt to support GNU ld on Solaris, which is non-trivial given that
both linkers have some options not supported by the other. Currently linker selection
is done at cmake time; it probably needs to be made runtime-selectable.
Mention SOLARIS in the variable name? Users on other OSes don't need to read the description of this variable.
It will also make the abbreviation GLD more legitimate. GLD isn't a well-recognized abbreviation for GNU ld.