1 /* Configuration for an i386 running GNU with ELF as the target machine. */
3 /* This does it mostly for us. */
4 #include <i386/linux.h>
6 /* Get machine-independent configuration parameters for the GNU system. */
10 #define TARGET_VERSION fprintf (stderr, " (i386 GNU)");
13 #define CPP_PREDEFINES "-D__ELF__ -D__i386__ -DMACH -Asystem(mach) \
14 -Dunix -Asystem(unix) -Asystem(posix) -D__GNU__ -Asystem(gnu)"
17 #define CPP_SPEC "%(cpp_cpu) \
18 %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} \
19 %{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}"
22 #define CC1_SPEC "%(cc1_cpu)"
25 #define LINK_SPEC "-m elf_i386 %{shared:-shared} \
28 %{rdynamic:-export-dynamic} \
29 %{!dynamic-linker:-dynamic-linker /lib/ld.so}} \
33 #define STARTFILE_SPEC \
36 %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} \
38 crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"