root/lang/objective-cplusplus/i3/trunk/scripts/configure_mingw_cross.sh @ 36641

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
3PATH_ORIG=$PATH
4
5for 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
10done
11
12if test "$MY_HOST" = "not_found"; then
13    echo cross tool not found
14    exit 1
15fi
16
17echo 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
Note: See TracBrowser for help on using the browser.