昨日の続き、本家mingw32のgccはノーパッチ?だったので、なるべくpatchなしでやってます。
$ mkdir gcc47
$ cd gcc47
$ wget http://www.dnsbalance.ring.gr.jp/archives/lang/egcs/snapshots/4.7-20130202/gcc-4.7-201300202.tar.bz2
$ tar xjf gcc-4.7-20130202.tar.bz2
$ cd gcc-4.7-20130202/gcc
$ patch <
gcc-diagnostic-mingw.patch$ cd ada
$ patch <
gcc-ada-4-cxx.patch$ cd ../..
$ patch <
Makefile-LN_S.patch$ cd ..
$ mkdir 20130202
$ cd 20130202
$ ../gcc-4.7-20130202/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --disable-win32-registry --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw CFLAGS='-g -O2 -fomit-frame-pointer' CXXFLAGS='-g -O2 -fomit-frame-pointer' CFLAGS_FOR_TARGET='-g -O2 -fomit-frame-pointer' CXXFLAGS_FOR_TARGET='-g -O2 -fomit-frame-pointer'
$ make BOOT_CFLAGS="-g -O3 -fomit-frame-pointer"
LN_S="ln -s"$ make install
$ gcc -v
組み込み spec を使用しています。
COLLECT_GCC=C:\MinGW\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.7.3/lto-wrapper.exe
ターゲット: mingw32
configure 設定: ../gcc-4.7-20130202/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --disable-win32-registry --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw CFLAGS='-g -O2 -fomit-frame-pointer' CXXFLAGS='-g -O2 -fomit-frame-pointer' 'CFLAGS_FOR_TARGET=-g -O2 -fomit-frame-pointer' 'CXXFLAGS_FOR_TARGET=-g -O2 -fomit-frame-pointer'
スレッドモデル: win32
gcc バージョン 4.7.3 20130202 (prerelease) (GCC)
次は、
gcjかな
[0回]