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

build on cygwin of gcc-3.0.2 required code changes

System: cygwin on Microsoft Windows 98, K6-II

build method:
$ cd
$ mkdir objdir
$ cd objdir
$ # install gcc in c:\usr\gcc
$ # use shared version of libstdc++
$ # use win32 threading model
$ # (optimize using k6 instructions)
$ bash ../../../pub/ins/app/gcc-3.0.2/configure \
--prefix=/cygdrive/c/usr/gcc --enable-shared=libstdc++ \
--enable-threads=win32 --with-cpu=k6
$ # build a level 2 optimized gcc without debugging
$ # build a level 2 optimized libc with debugging
$ # same for libcxx
$ make CFLAGS='-O2' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 
-fno-implicit-templates' bootstrap
$ # fastjar is not supported on cygwin: ignore install errors
$ make -k install

The following two changes were required to build gcc-3.0.2:

Changed in file gcc-3.0.2/gcc/gthr-win32.h line with




(__gthread_objc_thread_exit_status wasn't defined.)

Changed in file cygwin/usr/include/w32api/windef.h line with

  typedef WINBOOL BOOL;


  typedef unsigned char BOOL;

(BOOL was defined in two ways.)



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