1#!/bin/sh 2 3case $1 in 4 i686 | x86_64) ;; 5 *) echo "Usage: $0 i686|x86_64" >&2; exit 1 ;; 6esac 7 8target=$1-w64-mingw32 9shift 10 11exec "$(dirname "$0")"/configure \ 12 --build=`../config.guess` \ 13 --host=$target \ 14 --prefix=$HOME/.local/$target \ 15 CC= \ 16 CXX= \ 17 CPP= \ 18 LD= \ 19 CFLAGS="-static-libgcc" \ 20 CXXFLAGS="-static-libgcc -static-libstdc++" \ 21 CPPFLAGS="-I$HOME/.local/$target/include" \ 22 LDFLAGS=-L$HOME/.local/$target/lib \ 23 PKG_CONFIG_LIBDIR=$HOME/.local/$target/lib/pkgconfig:/usr/$target/sys-root/mingw/lib/pkgconfig/ \ 24 PKG_CONFIG_PATH=$HOME/.local/$target/share/pkgconfig:/usr/$target/sys-root/mingw/share/pkgconfig/ \ 25 PATH=$HOME/.local/$target/bin:/usr/$target/sys-root/mingw/bin:/usr/$target/bin:$PATH \ 26 --without-icu \ 27 --with-uniscribe \ 28 "$@" 29