summaryrefslogtreecommitdiff
path: root/gcc/config/i386/mingw32.h
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-12 18:18:06 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-12 18:18:06 +0000
commit3ceb0924778ea24891353e1ffc5f48fb3efcaea2 (patch)
tree8408eb805358d0bfa0f159391812384fe250deb5 /gcc/config/i386/mingw32.h
parent5ff4c4568e7e3fe045fb1ea395288d4155b53984 (diff)
downloadgcc-3ceb0924778ea24891353e1ffc5f48fb3efcaea2.tar.gz
* i386/cygwin.h (SUBTARGET_SWITCHES): Add -mconsole; fix
-mno-nop-fun-dllimport and minor doc fixes. (STARTFILE_SPEC): Cygwin DLLs don't have dllcrt0. (LINK_SPEC): Add -mconsole support. * i386/mingw32.h (LIB_SPEC): Make libraries consistent with Cygwin. (LINK_SPEC): Remove. Use Cygwin's version. (MATH_LIBRARY): Make it null. * i386/crtdll.h (MATH_LIBRARY): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26378 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/mingw32.h')
-rw-r--r--gcc/config/i386/mingw32.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h
index f8da4894ad0..552cbcd1932 100644
--- a/gcc/config/i386/mingw32.h
+++ b/gcc/config/i386/mingw32.h
@@ -50,22 +50,18 @@ Boston, MA 02111-1307, USA. */
/* For Windows applications, include more libraries, but always include
kernel32. */
#undef LIB_SPEC
-#define LIB_SPEC \
-"%{mwindows:-luser32 -lgdi32 -lcomdlg32} -lkernel32 -ladvapi32 -lshell32"
+#define LIB_SPEC "%{mwindows:-lgdi32 -lcomdlg32} \
+ -luser32 -lkernel32 -ladvapi32 -lshell32"
/* Include in the mingw32 libraries with libgcc */
#undef LIBGCC_SPEC
#define LIBGCC_SPEC "-lmingw32 -lgcc -lmoldname -lmsvcrt"
-/* Specify a different entry point when linking a DLL */
-#undef LINK_SPEC
-#define LINK_SPEC \
-"%{mwindows:--subsystem windows} %{mdll:--dll -e _DllMainCRTStartup@12}"
-
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "%{mdll:dllcrt2%O%s} %{!mdll:crt2%O%s}"
-#define MATH_LIBRARY "-lmsvcrt"
+/* MS runtime does not need a separate math library. */
+#define MATH_LIBRARY ""
/* Output STRING, a string representing a filename, to FILE. We canonicalize
it to be in MS-DOS format. */