gnu.h revision 52284
1/* Configuration for an i386 running GNU with ELF as the target machine. */ 2 3/* This does it mostly for us. */ 4#include <i386/linux.h> 5 6/* Get machine-independent configuration parameters for the GNU system. */ 7#include <gnu.h> 8 9#undef TARGET_VERSION 10#define TARGET_VERSION fprintf (stderr, " (i386 GNU)"); 11 12#undef CPP_PREDEFINES 13#define CPP_PREDEFINES "-D__ELF__ -D__i386__ -DMACH -Asystem(mach) \ 14 -Dunix -Asystem(unix) -Asystem(posix) -D__GNU__ -Asystem(gnu)" 15 16#undef CPP_SPEC 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}" 20 21#undef CC1_SPEC 22#define CC1_SPEC "%(cc1_cpu)" 23 24#undef LINK_SPEC 25#define LINK_SPEC "-m elf_i386 %{shared:-shared} \ 26 %{!shared: \ 27 %{!static: \ 28 %{rdynamic:-export-dynamic} \ 29 %{!dynamic-linker:-dynamic-linker /lib/ld.so}} \ 30 %{static:-static}}" 31 32#undef STARTFILE_SPEC 33#define STARTFILE_SPEC \ 34 "%{!shared: \ 35 %{!static: \ 36 %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} \ 37 %{static:crt0.o%s}} \ 38 crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}" 39