blob: 496cae29140d7612897b2f247ccdee4e3e0c17db [file] [log] [blame]
Behdad Esfahbode05e5602021-01-24 12:28:04 -07001#!/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" \
Behdad Esfahbod3c34b9e2022-06-27 19:45:58 -060020 CXXFLAGS="-O2 -static-libgcc -static-libstdc++" \
Behdad Esfahbode05e5602021-01-24 12:28:04 -070021 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 \
Behdad Esfahbodea513152022-06-26 13:30:11 -060027 --with-gdi \
Behdad Esfahbode05e5602021-01-24 12:28:04 -070028 --with-uniscribe \
Behdad Esfahbodea513152022-06-26 13:30:11 -060029 --with-directwrite=auto \
Behdad Esfahbode05e5602021-01-24 12:28:04 -070030 "$@"