root/lang/cplusplus/i3/scripts/make_libintl_dll.sh @ 23063

Revision 23063, 1.1 kB (checked in by saturday06, 5 years ago)

ibintl

  • Property svn:executable set to *
Line 
1
2target_host=i586-mingw32msvc
3#export PATH=/usr/local/bin:/mingw/bin:/bin
4
5mytmpdir=`pwd`/tmp_make_libintl_dll
6
7rm -rf $mytmpdir
8mkdir -p $mytmpdir
9
10env -i mytmpdir="$mytmpdir" target_host=$target_host PATH=$PATH TMP=$TMP /bin/sh -c '
11if [ -n "$target_host" ]; then
12  export target_host_="$target_host-"
13fi
14export TMP=/tmp
15export CFLAGS="-O3 -fexpensive-optimizations -DNDEBUG -U_DEBUG"
16export LDFLAGS="-s"
17mkdir ${mytmpdir}/lib
18mkdir ${mytmpdir}/include
19sh windows/patch_intl.sh
20cp 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
29cd intl
30make clean
31make
32cd ..
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}
38mv -f libintl.dll windows/bin
39' > ${mytmpdir}/stdout 2> ${mytmpdir}/stderr
40
Note: See TracBrowser for help on using the browser.