gnu.h revision 1.1.1.1.8.2
1/* Configuration common to all targets running the GNU system.  */
2
3/*
4Copyright (C) 1994, 1995, 1997, 1998, 1999, 2002, 2003, 2004, 2007, 2008 Free
5Software Foundation, Inc.
6
7This file is part of GCC.
8
9GCC is free software: you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by
11the Free Software Foundation, either version 3 of the License, or
12(at your option) any later version.
13
14GCC is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with GCC.  If not, see <http://www.gnu.org/licenses/>.
21*/
22
23/* Provide GCC options for standard feature-test macros.  */
24#undef CPP_SPEC
25#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}"
26
27/* Default C library spec.  Use -lbsd-compat for gcc -bsd.  */
28#undef LIB_SPEC
29#define LIB_SPEC "%{pthread:-lpthread} %{bsd:-lbsd-compat} %{pg|p|profile:-lc_p;:-lc}"
30
31/* Standard include directory.  In GNU, "/usr" is a four-letter word.  */
32#undef STANDARD_INCLUDE_DIR
33#define STANDARD_INCLUDE_DIR "/include"
34
35#undef LINUX_TARGET_OS_CPP_BUILTINS
36#define LINUX_TARGET_OS_CPP_BUILTINS()		\
37    do {					\
38	builtin_define ("__gnu_hurd__");	\
39	builtin_define ("__GNU__");		\
40	builtin_define_std ("unix");		\
41	builtin_define_std ("MACH");		\
42	builtin_assert ("system=gnu");		\
43	builtin_assert ("system=mach");		\
44	builtin_assert ("system=unix");		\
45	builtin_assert ("system=posix");	\
46    } while (0)
47