]> gcc.gnu.org Git - gcc.git/blame - gcc/config/rs6000/cygwin.h
acconfig.h (HAVE_GAS_WEAK): New define.
[gcc.git] / gcc / config / rs6000 / cygwin.h
CommitLineData
3a2c1cd8
MM
1/* Operating system specific defines to be used when targeting GCC for
2 hosting on Windows NT 3.x, using the Cygnus API
3
4 This is different to the winnt.h file, since that is used
5 to build GCC for use with a windows style library and tool
6 set, winnt.h uses the Microsoft tools to do that.
7
cae21ae8 8 Copyright (C) 1996, 1997 Free Software Foundation, Inc.
3a2c1cd8
MM
9
10This file is part of GNU CC.
11
12GNU CC is free software; you can redistribute it and/or modify
13it under the terms of the GNU General Public License as published by
14the Free Software Foundation; either version 2, or (at your option)
15any later version.
16
17GNU CC is distributed in the hope that it will be useful,
18but WITHOUT ANY WARRANTY; without even the implied warranty of
19MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20GNU General Public License for more details.
21
22You should have received a copy of the GNU General Public License
23along with GNU CC; see the file COPYING. If not, write to
24the Free Software Foundation, 59 Temple Place - Suite 330,
25Boston, MA 02111-1307, USA. */
26
27
28/* Ugly hack */
29#include "rs6000/win-nt.h"
30
31
32#ifdef CPP_PREDEFINES
33#undef CPP_PREDEFINES
34#endif
35
cae21ae8 36#define CPP_PREDEFINES "-D_WIN32 -DWINNT -D__CYGWIN__ -D__CYGWIN32__ -DPOSIX \
979721f8 37 -D_POWER -D_ARCH_PPC -D__PPC__ -Asystem(winnt) -Acpu(powerpc) -Amachine(powerpc)"
3a2c1cd8 38
cae21ae8
GN
39#undef CPP_SPEC
40#define CPP_SPEC "-remap %{posix: -D_POSIX_SOURCE} %(cpp_cpu)"
41
5100ad46
MM
42/* We have to dynamic link to get to the system DLLs. All of libc, libm and
43 the Unix stuff is in cygwin.dll. The import library is called
44 'libcygwin.a'. For Windows applications, include more libraries, but
45 always include kernel32. We'd like to specific subsystem windows to
46 ld, but that doesn't work just yet. */
3a2c1cd8
MM
47
48#undef LIB_SPEC
5100ad46 49#define LIB_SPEC "-lcygwin %{mwindows:-luser32 -lgdi32 -lcomdlg32} -lkernel32"
3a2c1cd8
MM
50
51#undef LINK_SPEC
48a0fabb 52#define LINK_SPEC "%{v:-V}"
3a2c1cd8 53
3a2c1cd8 54#undef STARTFILE_SPEC
461422d5 55#define STARTFILE_SPEC "crti%O%s crt0%O%s"
2aa35c63
MM
56
57#undef ENDFILE_SPEC
58#define ENDFILE_SPEC "crtn%O%s"
3a2c1cd8
MM
59
60#define PTRDIFF_TYPE "int"
61#define WCHAR_UNSIGNED 1
62#define WCHAR_TYPE_SIZE 16
63#define WCHAR_TYPE "short unsigned int"
64
979721f8
MM
65#define DBX_DEBUGGING_INFO
66#undef SDB_DEBUGGING_INFO
67#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
This page took 0.504735 seconds and 5 git commands to generate.