This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch]: Add libmingwex.a to LIBGCC_SPEC for mingw32


Hello

The mingw runtime has an 'extension' library (libmingwex.a) containing
functions not available through the system CRT lib (msvcrt.dll).
These are mainly C99 functions, the exception being the dirent
functions (opendir and friends).  This library has been part of mingw
binary distributions since 2002-06-13. 

Availability of these functions means greater functionality in libstdc++.
A long-term goal is to provide enough CRT wide char support to enable wide char
in libstdc++.

The dirent functions are referenced by cppfiles.c (open_file_pch),
ada/g-dirope.adb, fastjar/jartool.c and java/jcf-path.c

This patch makes libmingwex.a a system dir.

GCC binaries distributed by mingw have had this patch in local sources
since 2002-08-17 (GCC-3.2).

OK for trunk?

Changelog

2003-02-14  Danny Smith  <dannysmith@users.sourceforge.net>

	* config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.


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 01:26:16 -0000
*************** 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} \
--- 91,97 ----
  /* 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} \

http://mobile.yahoo.com.au - Yahoo! Mobile
- Exchange IMs with Messenger friends on your Telstra or Vodafone mobile phone.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]