crtdll.h revision 132718
191094Sdes/* Operating system specific defines to be used when targeting GCC for 292289Sdes hosting on Windows32, using GNU tools and the Windows32 API Library. 391094Sdes This variant uses CRTDLL.DLL instead of MSVCRTDLL.DLL. 491094Sdes Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. 591094Sdes 691094SdesThis file is part of GCC. 791094Sdes 891094SdesGCC is free software; you can redistribute it and/or modify 991094Sdesit under the terms of the GNU General Public License as published by 1091094Sdesthe Free Software Foundation; either version 2, or (at your option) 1191094Sdesany later version. 1291094Sdes 1391094SdesGCC is distributed in the hope that it will be useful, 1491094Sdesbut WITHOUT ANY WARRANTY; without even the implied warranty of 1591094SdesMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1691094SdesGNU General Public License for more details. 1791094Sdes 1891094SdesYou should have received a copy of the GNU General Public License 1991094Sdesalong with GCC; see the file COPYING. If not, write to 2091094Sdesthe Free Software Foundation, 59 Temple Place - Suite 330, 2191094SdesBoston, MA 02111-1307, USA. */ 2291094Sdes 2391094Sdes#undef EXTRA_OS_CPP_BUILTINS 2491094Sdes#define EXTRA_OS_CPP_BUILTINS() \ 2591094Sdes do \ 2691094Sdes { \ 2791094Sdes builtin_define ("__CRTDLL__"); \ 2891094Sdes builtin_define ("__MINGW32__"); \ 2991094Sdes builtin_define ("_WIN32"); \ 3091094Sdes builtin_define_std ("WIN32"); \ 3191094Sdes builtin_define_std ("WINNT"); \ 3291094Sdes } \ 3391094Sdes while (0) 3495908Sdes 3591094Sdes#undef LIBGCC_SPEC 3691094Sdes#define LIBGCC_SPEC \ 3791094Sdes "%{mthreads:-lmingwthrd} -lmingw32 -lgcc -lcoldname -libmingwex -lcrtdll" 3891094Sdes 3991094Sdes/* Specify a different entry point when linking a DLL */ 4091094Sdes#undef STARTFILE_SPEC 4191094Sdes#define STARTFILE_SPEC "%{shared|mdll:dllcrt1%O%s} \ 4291094Sdes %{!shared:%{!mdll:crt1%O%s}} %{pg:gcrt1%O%s}" 4391094Sdes 4491094Sdes