diff --git a/contrib/gcc/config.gcc b/contrib/gcc/config.gcc index 2e1c10f4f74f..0cd7b91b1fda 100644 --- a/contrib/gcc/config.gcc +++ b/contrib/gcc/config.gcc @@ -428,9 +428,9 @@ case ${target} in tm_defines="${tm_defines} FBSD_MAJOR=8" ;; *-*-freebsd9 | *-*-freebsd[9].*) tm_defines="${tm_defines} FBSD_MAJOR=9" ;; - *-*-freebsd10 | *-*-freebsd[10].*) + *-*-freebsd10 | *-*-freebsd10.*) tm_defines="${tm_defines} FBSD_MAJOR=10" ;; - *-*-freebsd11 | *-*-freebsd[11].*) + *-*-freebsd11 | *-*-freebsd11.*) tm_defines="${tm_defines} FBSD_MAJOR=11" ;; *) echo 'Please update *-*-freebsd* in gcc/config.gcc'