This is the mail archive of the gcc@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]

Successful build - GCC 3.1.1 on Cygwin (Win2000) targeting mingw32


Hello,

I have successfully built gcc 3.1.1 (c,c++,java) on Cygwin targeting 
mingw32. Two patches was needed to make it compile. Here are the 
patches used;

----------------------------------------------------------------

*** mingw32.h   Mon Jun 17 12:23:42 2002
--- mingw32.h   Mon Jun 17 14:36:51 2002
***************
*** 75,79 ****
  #undef LIBGCC_SPEC
  #define LIBGCC_SPEC \
!   "%{mthreads:-lmingwthrd} -lmingw32 -lgcc -lmoldname -lmsvcrt"

  #undef STARTFILE_SPEC
--- 75,79 ----
  #undef LIBGCC_SPEC
  #define LIBGCC_SPEC \
!   "%{mthreads:-lmingwthrd} -lmingw32 -lgcc -lmoldname -lmingwex -
lmsvcrt"

  #undef STARTFILE_SPEC

----------------------------------------------------------------

*** natPlainDatagramSocketImpl.cc	Mon Jun 17 09:38:37 2002
--- natPlainDatagramSocketImpl.cc	Mon Jun 17 14:35:06 2002
***************
*** 12,15 ****
--- 12,16 ----
  
  #ifdef WIN32
+ #include <ws2tcpip.h>
  #include <errno.h>
  #include <string.h>

----------------------------------------------------------------

Any comments on the patches? Also, the bin/lib/include directories from 
mingw runtime and w32api (except win32api include directory, handled by 
the --with-headers option) must be manually copied into $PREFIX/i686-pc-
cygwin before running make.

$ gcc -v
Reading specs from /usr/local/gcc-3.1.1/lib/gcc-lib/i686-pc-
mingw32/3.1.1/specs
Configured with: ../gcc-3.2/configure --prefix=/usr/local/gcc-3.1.1 --
host=i686-pc-cygwin --target=i686-pc-mingw32 --enable-
languages=c,c++,java --disable-nls --with-as=/bin/as.exe --with-
ld=/bin/ld.exe --enable-libgcj --enable-gc-type=boehm --disable-shared -
-enable-threads=win32 --disable-hash-synchronization --disable-
interpreter --enable-sjlj-exceptions --with-
headers=/usr/local/mingw/w32api/include --program-transform-name=s,^,,
Thread model: win32
gcc version 3.1.1 20020610 (prerelease)

$ uname -a
CYGWIN_NT-5.0 WMWI003512 1.3.10(0.51/3/2) 2002-02-25 11:14 i686 unknown

Regards,
Mats


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