One of the recent Solaris patches removed want64=true from the 32-bit
Solaris targets. This breaks GCC bootstrap: unlike Linux, GCC on
Solaris is always biarch, both in 32-bit-default and 64-bit-default
configurations, so the 64-bit multilib fails to build.
This patch undoes this incompatible change.
Tested on i386-pc-solaris2.11 and sparc-sun-solaris2.11.
2025-12-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
bfd:
* config.bfd <i[3-7]86-*-solaris2*> (want64): Add.
<sparc-*-solaris2*>: Likewise.
targ_defvec=i386_elf32_sol2_vec
targ_selvecs=i386_elf32_vec
targ64_selvecs="x86_64_elf64_sol2_vec x86_64_elf64_vec"
+ # Include 64-bit support to match GCC.
+ want64=true
;;
i[3-7]86-*-solaris*)
targ_defvec=i386_elf32_sol2_vec
targ_defvec=sparc_elf32_sol2_vec
targ_selvecs=sparc_elf32_vec
targ64_selvecs="sparc_elf64_sol2_vec sparc_elf64_vec"
+ # Include 64-bit support to match GCC.
+ want64=true
;;
#ifdef BFD64
sparcv9-*-solaris2* | sparc64-*-solaris2*)