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