|
Revision 36641, 0.8 kB
(checked in by saturday06, 3 years ago)
|
|
aaa
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | # -*- coding: utf-8-unix -*- |
|---|
| 2 | |
|---|
| 3 | PATH_ORIG=$PATH |
|---|
| 4 | |
|---|
| 5 | for MY_HOST in i586-mingw32msvc i686-w64-mingw32 not_found; do |
|---|
| 6 | which ${MY_HOST}-gcc 2> /dev/null > /dev/null |
|---|
| 7 | if test $? -eq 0; then |
|---|
| 8 | break |
|---|
| 9 | fi |
|---|
| 10 | done |
|---|
| 11 | |
|---|
| 12 | if test "$MY_HOST" = "not_found"; then |
|---|
| 13 | echo cross tool not found |
|---|
| 14 | exit 1 |
|---|
| 15 | fi |
|---|
| 16 | |
|---|
| 17 | echo HOST=${MY_HOST} |
|---|
| 18 | |
|---|
| 19 | #export CFLAGS="-O3 -DNDEBUG -U_DEBUG -march=i486 -Wno-missing-field-initializers -Wno-unused-value -Wno-unused-parameter" |
|---|
| 20 | #export CXXFLAGS="${CFLAGS}" |
|---|
| 21 | #export LDFLAGS="-s" |
|---|
| 22 | |
|---|
| 23 | # iconv |
|---|
| 24 | # ./configure --host=${MYHOST} --prefix=${MYPREFIX} --disable-shared && make && make install |
|---|
| 25 | ./configure \ |
|---|
| 26 | --host=${MY_HOST} \ |
|---|
| 27 | --with-gui=windows \ |
|---|
| 28 | --enable-threads=win32 \ |
|---|
| 29 | --with-included-gettext \ |
|---|
| 30 | --with-libiconv-prefix=${MY_PREFIX} \ |
|---|
| 31 | --with-boost=${MY_PREFIX} |
|---|
| 32 | |
|---|