118334Speter/* Configuration for an i386 running GNU with ELF as the target machine.  */
218334Speter
350397Sobrien#undef TARGET_VERSION
450397Sobrien#define TARGET_VERSION fprintf (stderr, " (i386 GNU)");
550397Sobrien
6117395Skan#undef TARGET_OS_CPP_BUILTINS /* config.gcc includes i386/linux.h.  */
7117395Skan#define TARGET_OS_CPP_BUILTINS()		\
8117395Skan  do						\
9117395Skan    {						\
10132718Skan	HURD_TARGET_OS_CPP_BUILTINS();		\
11117395Skan    }						\
12117395Skan  while (0)
1352284Sobrien
1452284Sobrien#undef CPP_SPEC
15117395Skan#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}"
1652284Sobrien
1752284Sobrien#undef CC1_SPEC
1852284Sobrien#define CC1_SPEC "%(cc1_cpu)"
1952284Sobrien
2018334Speter#undef	LINK_SPEC
2118334Speter#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
2218334Speter  %{!shared: \
2350397Sobrien    %{!static: \
2450397Sobrien      %{rdynamic:-export-dynamic} \
2550397Sobrien      %{!dynamic-linker:-dynamic-linker /lib/ld.so}} \
2650397Sobrien    %{static:-static}}"
2718334Speter
2852284Sobrien#undef	STARTFILE_SPEC
2952284Sobrien#define STARTFILE_SPEC \
3052284Sobrien  "%{!shared: \
3152284Sobrien     %{!static: \
3252284Sobrien       %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} \
3352284Sobrien     %{static:crt0.o%s}} \
3490075Sobrien   crti.o%s %{static:crtbeginT.o%s}\
3590075Sobrien   %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"
3690075Sobrien
3790075Sobrien/* FIXME: Is a Hurd-specific fallback mechanism necessary?  */
38169689Skan#undef MD_UNWIND_SUPPORT
39