root/lang/c/libintl-msvc/1.sh @ 24179

Revision 24179, 0.8 kB (checked in by saturday06, 6 years ago)

ok?

Line 
1
2CFLAGS="-O3 -DNDEBUG -U_DEBUG -mno-stack-arg-probe -D__USE_MINGW_ANSI_STDIO=0"
3#CFLAGS="-O3 -DNDEBUG -U_DEBUG -mno-stack-arg-probe -D__USE_MINGW_ANSI_STDIO=0 -fno-gnu-linker"
4
5# ---------------------
6# setup dummy libiconv
7# ---------------------
8
9mkdir -p win_iconv/include
10mkdir -p win_iconv/lib
11cp recipes/iconv.h win_iconv/include/
12gcc ${CFLAGS} -c recipes/win_iconv.c -o win_iconv.o
13ar rv win_iconv/lib/libiconv.a win_iconv.o
14
15# ---------------------
16# compile libintl
17# ---------------------
18
19cd recipes/gettext-runtime
20rm -f intl/loadmsgcat.c
21autoreconf -i
22patch --batch --forward -p0 < ../intl.patch
23cp ../loadmsgcat-windows.h intl
24CFLAGS=$CFLAGS ./configure \
25  --with-libiconv-prefix=`pwd`/../../win_iconv \
26  --with-included-gettext \
27  --enable-threads=win32
28cd intl
29make clean
30make
31gcc $CFLAGS -c tsearch.c -I..
32strip -gx *.o
33cd ../../../
34
Note: See TracBrowser for help on using the browser.