https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93704
--- Comment #5 from Vita Batrla <vita.batrla at gmail dot com> --- To answer previous question, here are configure options for GCC in Solaris: https://github.com/oracle/solaris-userland/blob/60efc343ffab1adac2d1c9cac7629af26d40de50/components/gcc9/Makefile#L91 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/lib CONFIGURE_OPTIONS += --enable-languages="c,c++,fortran,go,objc" CONFIGURE_OPTIONS += --enable-shared CONFIGURE_OPTIONS += --enable-initfini-array CONFIGURE_OPTIONS += --disable-rpath CONFIGURE_OPTIONS += --with-system-zlib CONFIGURE_OPTIONS += --with-build-config=no CONFIGURE_OPTIONS += --with-gmp-include=$(shell pkg-config --variable=includedir libgmp) CONFIGURE_OPTIONS += --with-mpfr-include=$(shell pkg-config --variable=includedir libmpfr) CONFIGURE_OPTIONS += --without-gnu-ld --with-ld=$(USRBINDIR)/ld CONFIGURE_OPTIONS += --with-gnu-as --with-as=$(GNUBIN)/as See last two lines, GCC is built with GNU as, but Solaris ld.