41 lines
1.4 KiB
Plaintext
41 lines
1.4 KiB
Plaintext
$NetBSD$
|
|
|
|
--- gcc/config.gcc.orig 2019-01-17 12:34:28.000000000 +0000
|
|
+++ gcc/config.gcc
|
|
@@ -838,15 +838,22 @@ case ${target} in
|
|
*-*-netbsd*)
|
|
tm_p_file="${tm_p_file} netbsd-protos.h"
|
|
tmake_file="t-netbsd t-slibgcc"
|
|
+ d_target_objs="${d_target_objs} netbsd-d.o"
|
|
extra_objs="${extra_objs} netbsd.o"
|
|
gas=yes
|
|
gnu_ld=yes
|
|
use_gcc_stdint=wrap
|
|
+ # cabs/cabsf are renamed to __c99_cabs/cabsf
|
|
+ tm_p_file="${tm_p_file} netbsd-protos.h"
|
|
+ target_gtfiles="${target_gtfiles} \$(srcdir)/config/netbsd.c"
|
|
+ extra_objs="${extra_objs} netbsd.o"
|
|
+ default_gnu_indirect_function=yes
|
|
case ${enable_threads} in
|
|
"" | yes | posix) thread_file='posix' ;;
|
|
esac
|
|
nbsd_tm_file="netbsd.h netbsd-stdint.h netbsd-elf.h"
|
|
default_use_cxa_atexit=yes
|
|
+ target_has_targetdm=yes
|
|
;;
|
|
*-*-openbsd*)
|
|
tmake_file="t-openbsd"
|
|
@@ -1650,10 +1657,12 @@ x86_64-*-freebsd*)
|
|
i[34567]86-*-netbsdelf*)
|
|
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${nbsd_tm_file} i386/netbsd-elf.h"
|
|
extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
|
|
+ tmake_file="${tmake_file} i386/t-crtstuff"
|
|
;;
|
|
x86_64-*-netbsd*)
|
|
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${nbsd_tm_file} i386/x86-64.h i386/netbsd64.h"
|
|
extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
|
|
+ tmake_file="${tmake_file} i386/t-crtstuff"
|
|
;;
|
|
i[34567]86-*-openbsd*)
|
|
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h"
|