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