$NetBSD: patch-libgcc_config.host,v 1.3 2019/04/18 19:18:02 rillig Exp $ Add NetBSD support for aarch64, x86 and x86_64. --- libgcc/config.host.orig 2018-04-06 13:04:17.000000000 -0700 +++ libgcc/config.host 2018-11-09 03:33:30.166898124 -0800 @@ -350,6 +350,12 @@ tmake_file="${tmake_file} ${cpu_type}/t-aarch64" tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp" ;; +aarch64*-*-netbsd*) + extra_parts="$extra_parts crtfastmath.o" + tmake_file="${tmake_file} ${cpu_type}/t-aarch64" + tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" + md_unwind_header=aarch64/aarch64-unwind.h + ;; aarch64*-*-linux*) extra_parts="$extra_parts crtfastmath.o" md_unwind_header=aarch64/linux-unwind.h @@ -632,10 +638,10 @@ md_unwind_header=i386/freebsd-unwind.h ;; i[34567]86-*-netbsdelf*) - tmake_file="${tmake_file} i386/t-crtstuff" + tmake_file="${tmake_file} i386/t-netbsd i386/t-crtstuff" ;; x86_64-*-netbsd*) - tmake_file="${tmake_file} i386/t-crtstuff" + tmake_file="${tmake_file} i386/t-netbsd i386/t-crtstuff" ;; i[34567]86-*-openbsd*) ;;