]>
Commit | Line | Data |
---|---|---|
5cd4989a | 1 | /* Operating system specific defines to be used when targeting GCC for |
db009825 | 2 | hosting on Windows32, using GNU tools and the Windows32 API Library. |
d1f87653 | 3 | This variant uses CRTDLL.DLL instead of MSVCRTDLL.DLL. |
a5544970 | 4 | Copyright (C) 1998-2019 Free Software Foundation, Inc. |
5cd4989a | 5 | |
e20285ad | 6 | This file is part of GCC. |
5cd4989a | 7 | |
e20285ad | 8 | GCC is free software; you can redistribute it and/or modify |
5cd4989a | 9 | it under the terms of the GNU General Public License as published by |
2f83c7d6 | 10 | the Free Software Foundation; either version 3, or (at your option) |
5cd4989a JL |
11 | any later version. |
12 | ||
e20285ad | 13 | GCC is distributed in the hope that it will be useful, |
5cd4989a JL |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | GNU General Public License for more details. | |
17 | ||
18 | You should have received a copy of the GNU General Public License | |
2f83c7d6 NC |
19 | along with GCC; see the file COPYING3. If not see |
20 | <http://www.gnu.org/licenses/>. */ | |
5cd4989a | 21 | |
f60ed6be | 22 | #undef EXTRA_OS_CPP_BUILTINS |
70e5e841 CF |
23 | #define EXTRA_OS_CPP_BUILTINS() \ |
24 | do \ | |
25 | { \ | |
26 | builtin_define ("__CRTDLL__"); \ | |
27 | builtin_define ("__MINGW32__"); \ | |
28 | builtin_define ("_WIN32"); \ | |
29 | builtin_define_std ("WIN32"); \ | |
30 | builtin_define_std ("WINNT"); \ | |
31 | } \ | |
32 | while (0) | |
3fafc2f6 | 33 | |
5cd4989a | 34 | #undef LIBGCC_SPEC |
f22a97d2 | 35 | #define LIBGCC_SPEC \ |
70e5e841 | 36 | "%{mthreads:-lmingwthrd} -lmingw32 -lgcc -lcoldname -libmingwex -lcrtdll" |
5cd4989a JL |
37 | |
38 | /* Specify a different entry point when linking a DLL */ | |
39 | #undef STARTFILE_SPEC | |
70e5e841 CF |
40 | #define STARTFILE_SPEC "%{shared|mdll:dllcrt1%O%s} \ |
41 | %{!shared:%{!mdll:crt1%O%s}} %{pg:gcrt1%O%s}" | |
5cd4989a | 42 |