https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120145
--- Comment #32 from Sam James <sjames at gcc dot gnu.org> --- Please try drop --enable-host-shared: if test x$enable_host_shared = xyes; then PICFLAG=-fPIC elif test x$enable_host_pie = xyes; then PICFLAG=-fPIE elif test x$gcc_cv_c_no_fpie = xyes; then PICFLAG=-fno-PIE else PICFLAG= fi