This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch]: Add libmingwex.a to LIBGCC_SPEC for mingw32
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: Christopher Faylor <cgf at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 15 Feb 2003 16:00:02 +1100 (EST)
- Subject: Re: [Patch]: Add libmingwex.a to LIBGCC_SPEC for mingw32
--- Christopher Faylor <cgf@redhat.com> wrote: > On Sat, Feb 15, 2003 at
02:14:23PM +1100, Danny Smith wrote:
> >OK for trunk?
>
> Yes. Would you be willing to patch cygwin.h, too, for the -mno-cygwin case?
>
> cgf
This is what I have checked in:
Changelog
2003-02-15 Danny Smith <dannysmith@users.sourceforge.net>
* config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
Update copyright.
* config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a, for
-mno-cygwin case.
Index: mingw32.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/mingw32.h,v
retrieving revision 1.30
diff -c -3 -p -r1.30 mingw32.h
*** mingw32.h 26 Dec 2002 18:45:04 -0000 1.30
--- mingw32.h 15 Feb 2003 04:41:06 -0000
***************
*** 1,6 ****
/* Operating system specific defines to be used when targeting GCC for
hosting on Windows32, using GNU tools and the Windows32 API Library.
! Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GNU CC.
--- 1,7 ----
/* Operating system specific defines to be used when targeting GCC for
hosting on Windows32, using GNU tools and the Windows32 API Library.
! Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
! Free Software Foundation, Inc.
This file is part of GNU CC.
*************** Boston, MA 02111-1307, USA. */
*** 91,97 ****
/* Include in the mingw32 libraries with libgcc */
#undef LIBGCC_SPEC
#define LIBGCC_SPEC \
! "%{mthreads:-lmingwthrd} -lmingw32 -lgcc -lmoldname -lmsvcrt"
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "%{shared|mdll:dllcrt2%O%s} \
--- 92,98 ----
/* Include in the mingw32 libraries with libgcc */
#undef LIBGCC_SPEC
#define LIBGCC_SPEC \
! "%{mthreads:-lmingwthrd} -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt"
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "%{shared|mdll:dllcrt2%O%s} \
Index: cygwin.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/cygwin.h,v
retrieving revision 1.78
diff -c -3 -p -r1.78 cygwin.h
*** cygwin.h 12 Feb 2003 18:39:32 -0000 1.78
--- cygwin.h 15 Feb 2003 04:41:06 -0000
*************** Boston, MA 02111-1307, USA. */
*** 136,142 ****
by calling the init function from the prologue. */
#undef LIBGCC_SPEC
! #define LIBGCC_SPEC "%{mno-cygwin: %{mthreads:-lmingwthrd} -lmingw32} -lgcc
%{mno-cygwin:-lmoldname -lmsvcrt}"
/* This macro defines names of additional specifications to put in the specs
that can be used in various specifications like CC1_SPEC. Its definition
--- 136,143 ----
by calling the init function from the prologue. */
#undef LIBGCC_SPEC
! #define LIBGCC_SPEC "%{mno-cygwin: %{mthreads:-lmingwthrd} -lmingw32} \
! -lgcc %{mno-cygwin:-lmoldname -lmingwex -lmsvcrt}"
/* This macro defines names of additional specifications to put in the specs
that can be used in various specifications like CC1_SPEC. Its definition
http://mobile.yahoo.com.au - Yahoo! Mobile
- Exchange IMs with Messenger friends on your Telstra or Vodafone mobile phone.