Avoid signed/unsigned char pitfalls when calling viet_is* functions
[vspell.git] / crosswin32.sh
blob4bcff4e8c9fadd409e0e9daa03b11562f4a50495
1 PATH=/opt/xmingw/bin/:/opt/xmingw/i386-mingw32msvc/bin/:$PATH
2 PKG_CONFIG_PATH=/mnt/c/MinGW/Gtk/lib/pkgconfig
3 CC=i386-mingw32msvc-gcc
4 CXX=i386-mingw32msvc-g++
5 AR=i386-mingw32msvc-ar
6 AS=i386-mingw32msvc-as
7 LD=i386-mingw32msvc-ld
8 CPP=i386-mingw32msvc-cpp
9 export PATH PKG_CONFIG_PATH CC CXX AR AS LD CPP
10 ./configure --host=i386-mingw32msvc
11 grep -v '#define malloc' config.h|grep -v '#define realloc' > config.h.new
12 cp config.h.new config.h
13 PKG_CONFIG='pkg-config --define-variable=prefix=/mnt/c/MinGW/Gtk'
14 make CXXFLAGS=-mms-bitfields CFLAGS=-mms-bitfields LDFLAGS=-mms-bitfields LIBS="`$PKG_CONFIG --libs gtk+-2.0`" PKG_CONFIG="$PKG_CONFIG"