This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
trivial patch to fix build of cross-compiler targeting mingw; please commit soon if possible
- From: Adam Megacz <adam at megacz dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 09 Dec 2001 02:26:37 -0500
- Subject: trivial patch to fix build of cross-compiler targeting mingw; please commit soon if possible
- Organization: Myself
This is an adaptation of the patch mentioned in
http://gcc.gnu.org/ml/libstdc++/2001-03/msg00144.html what appears
below is a diff against the latest CVS (08-Dec-2001) -- the
patch in the mailing list won't work on new CVS sources.
Please approve this (very simple) patch quickly if possible; once it
hits the trunk I can publish my html page describing (in painstaking
detail) how to build a linux-to-mingw32 cross-compiler out of the
gcc3.1 sources.
2001-12-08 Adam Megacz <adam@xwt.org>
* added os_include_dir line to listdc++-v3/configure.in to
enable cross-compiling with a mingw32 target
Index: libstdc++-v3/configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/configure.in,v
retrieving revision 1.79
diff -c -3 -p -r1.79 configure.in
*** configure.in 2001/12/03 22:28:57 1.79
--- configure.in 2001/12/09 07:19:24
*************** if test -n "$with_cross_host" || test x"
*** 124,129 ****
--- 124,132 ----
AC_DEFINE(HAVE_SINCOS)
AC_DEFINE(HAVE_SINCOSF)
;;
+ *-mingw*)
+ os_include_dir="config/os/generic"
+ ;;
*)
os_include_dir="config/os/newlib"
AC_DEFINE(HAVE_HYPOT)