--- gcc/config.host.orig 2020-03-04 19:30:00.000000000 +1100 +++ gcc/config.host 2020-09-11 12:57:01.089405000 +1000 @@ -99,7 +99,7 @@ esac case ${host} in - aarch64*-*-freebsd* | aarch64*-*-linux* | aarch64*-*-fuchsia*) + aarch64*-*-bsdsunix* | aarch64*-*-freebsd* | aarch64*-*-linux* | aarch64*-*-fuchsia*) case ${target} in aarch64*-*-*) host_extra_gcc_objs="driver-aarch64.o" @@ -107,7 +107,7 @@ ;; esac ;; - arm*-*-freebsd* | arm*-*-linux* | arm*-*-fuchsia*) + arm*-*-bsdsunix* | arm*-*-freebsd* | arm*-*-linux* | arm*-*-fuchsia*) case ${target} in arm*-*-*) host_extra_gcc_objs="driver-arm.o" @@ -155,7 +155,7 @@ ;; esac case ${host} in - *-*-linux* | *-*-freebsd*) + *-*-linux* | *-*-freebsd* | *-*-bsdsunix*) if test "${GCC}:${ac_cv_sizeof_long}" = yes:4; then # On powerpc*-*-linux* use -Wl,--relax to link cc1, # if ld is new enough, otherwise force -O1 in CFLAGS.