| | 2 | |
| | 3 | |
| | 4 | MYHOST=i686-w64-mingw32 |
| | 5 | MYPREFIX=/usr/local/${MYHOST} |
| | 6 | |
| | 7 | export PATH="${MYPREFIX}/bin:${PATH}" |
| | 8 | export CFLAGS="-O3 -DNDEBUG -U_DEBUG -march=i486 -Wno-missing-field-initializers -Wno-unused-value -Wno-unused-parameter" |
| | 9 | export CXXFLAGS="${CFLAGS}" |
| | 10 | export LDFLAGS="-s" |
| | 11 | |
| | 12 | # iconv |
| | 13 | # ./configure --host=${MYHOST} --prefix=${MYPREFIX} --disable-shared && make && make install |
| | 14 | ./configure \ |
| | 15 | --host=${MYHOST} \ |
| | 16 | --disable-debug \ |
| | 17 | --with-gui=windows \ |
| | 18 | --enable-threads=win32 \ |
| | 19 | --with-included-gettext \ |
| | 20 | && make clean all check windows-dist \ |
| | 21 | && echo OK |
| | 22 | |
| | 23 | |
| | 24 | |
| | 25 | # -*- coding: utf-8-unix -*- |
| | 26 | |
| | 27 | #if [ `/bin/uname -o` != "Cygwin" ]; then |
| | 28 | # echo "not cygwin" |
| | 29 | # exit |
| | 30 | #fi |
| | 31 | |
| | 32 | svn diff |
| | 33 | |
| | 34 | #MYHOST=i686-w64-mingw32 |
| | 35 | MYHOST=i486-pc-mingw32 |
| | 36 | MYPREFIX=/usr/local/${MYHOST} |
| | 37 | |
| | 38 | export PATH="${MYPREFIX}/bin:${PATH}" |
| | 39 | export CFLAGS="-O3 -DNDEBUG -U_DEBUG -march=i486 -Wno-missing-field-initializers -Wno-unused-value -Wno-unused-parameter" |
| | 40 | export CXXFLAGS="${CFLAGS}" |
| | 41 | export LDFLAGS="-s" |
| | 42 | |
| | 43 | # iconv |
| | 44 | # ./configure --host=${MYHOST} --prefix=${MYPREFIX} --disable-shared && make && make install |
| | 45 | ./configure \ |
| | 46 | --host=${MYHOST} \ |
| | 47 | --disable-debug \ |
| | 48 | --with-gui=windows \ |
| | 49 | --enable-threads=win32 \ |
| | 50 | --with-included-gettext \ |
| | 51 | --with-libiconv-prefix=${MYPREFIX} \ |
| | 52 | --with-boost=${MYPREFIX} \ |
| | 53 | && make clean all check windows-dist \ |
| | 54 | && echo OK |
| | 55 | |
| | 56 | |
| | 57 | |