This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
build on cygwin 2.78.2.13 of gcc-3.0.2 required code changes
- To: gcc at gcc dot gnu dot org
- Subject: build on cygwin 2.78.2.13 of gcc-3.0.2 required code changes
- From: krelisNet at softhome dot net
- Date: Wed, 07 Nov 2001 22:25:15 +0100
System: cygwin 2.78.2.13 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
ExitThread(__gthread_objc_thread_exit_status);
into
ExitThread(__objc_thread_exit_status);
(__gthread_objc_thread_exit_status wasn't defined.)
Changed in file cygwin/usr/include/w32api/windef.h line with
typedef WINBOOL BOOL;
into
typedef unsigned char BOOL;
(BOOL was defined in two ways.)
Regards,
Cornelis