|
Revision 23063, 1.1 kB
(checked in by saturday06, 5 years ago)
|
|
ibintl
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | |
|---|
| 2 | target_host=i586-mingw32msvc |
|---|
| 3 | #export PATH=/usr/local/bin:/mingw/bin:/bin |
|---|
| 4 | |
|---|
| 5 | mytmpdir=`pwd`/tmp_make_libintl_dll |
|---|
| 6 | |
|---|
| 7 | rm -rf $mytmpdir |
|---|
| 8 | mkdir -p $mytmpdir |
|---|
| 9 | |
|---|
| 10 | env -i mytmpdir="$mytmpdir" target_host=$target_host PATH=$PATH TMP=$TMP /bin/sh -c ' |
|---|
| 11 | if [ -n "$target_host" ]; then |
|---|
| 12 | export target_host_="$target_host-" |
|---|
| 13 | fi |
|---|
| 14 | export TMP=/tmp |
|---|
| 15 | export CFLAGS="-O3 -fexpensive-optimizations -DNDEBUG -U_DEBUG" |
|---|
| 16 | export LDFLAGS="-s" |
|---|
| 17 | mkdir ${mytmpdir}/lib |
|---|
| 18 | mkdir ${mytmpdir}/include |
|---|
| 19 | sh windows/patch_intl.sh |
|---|
| 20 | cp src/os-windows/msvc/iconv.h ${mytmpdir}/include |
|---|
| 21 | ${target_host_}gcc -c ${CFLAGS} windows/win_iconv.c -o ${mytmpdir}/win_iconv.o |
|---|
| 22 | ${target_host_}ar rv ${mytmpdir}/lib/libiconv.a ${mytmpdir}/win_iconv.o |
|---|
| 23 | ./configure \ |
|---|
| 24 | --host=$target_host \ |
|---|
| 25 | --with-included-gettext \ |
|---|
| 26 | --with-libiconv-prefix=${mytmpdir} \ |
|---|
| 27 | --enable-threads=win32 \ |
|---|
| 28 | --without-boost |
|---|
| 29 | cd intl |
|---|
| 30 | make clean |
|---|
| 31 | make |
|---|
| 32 | cd .. |
|---|
| 33 | ${target_host_}dllwrap \ |
|---|
| 34 | --dllname libintl.dll \ |
|---|
| 35 | --def windows/libintl.def \ |
|---|
| 36 | --output-def windows/libintl.def.after_dllwrap \ |
|---|
| 37 | intl/libintl.a ${mytmpdir}/lib/libiconv.a ${CFLAGS} ${LDFLAGS} |
|---|
| 38 | mv -f libintl.dll windows/bin |
|---|
| 39 | ' > ${mytmpdir}/stdout 2> ${mytmpdir}/stderr |
|---|
| 40 | |
|---|