1 /* Configuration common to all targets running the GNU system. */
3 /* Macro to produce CPP_PREDEFINES for GNU on a given machine. */
4 #define GNU_CPP_PREDEFINES(machine) \
5 "-D" machine " -Acpu(" machine ") -Amachine(" machine ")" \
6 "-Dunix -Asystem(unix) \
7 -DMACH -Asystem(mach) \
8 -D__GNU__ -Asystem(gnu) -D__HURD__"
10 /* Provide GCC options for standard feature-test macros. */
12 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}"
14 /* Provide an ASM_SPEC appropriate for GNU. Currently we only deal
15 with the options for generating PIC code. */
17 #define ASM_SPEC " %| %{fpic:-k} %{fPIC:-k -K}"
19 /* Default C library spec. Use -lbsd-compat for gcc -bsd. */
21 #define LIB_SPEC "%{bsd:-lbsd-compat} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
27 /* Implicit library calls should use memcpy, not bcopy, etc. */
28 #define TARGET_MEM_FUNCTIONS
30 /* The system headers under GNU are C++-aware. */
31 #define NO_IMPLICIT_EXTERN_C