Behdad Esfahbod | e05e560 | 2021-01-24 12:28:04 -0700 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | case $1 in |
| 4 | i686 | x86_64) ;; |
| 5 | *) echo "Usage: $0 i686|x86_64" >&2; exit 1 ;; |
| 6 | esac |
| 7 | |
| 8 | target=$1-w64-mingw32 |
| 9 | shift |
| 10 | |
| 11 | exec "$(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 Esfahbod | 3c34b9e | 2022-06-27 19:45:58 -0600 | [diff] [blame] | 20 | CXXFLAGS="-O2 -static-libgcc -static-libstdc++" \ |
Behdad Esfahbod | e05e560 | 2021-01-24 12:28:04 -0700 | [diff] [blame] | 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 \ |
Behdad Esfahbod | ea51315 | 2022-06-26 13:30:11 -0600 | [diff] [blame] | 27 | --with-gdi \ |
Behdad Esfahbod | e05e560 | 2021-01-24 12:28:04 -0700 | [diff] [blame] | 28 | --with-uniscribe \ |
Behdad Esfahbod | ea51315 | 2022-06-26 13:30:11 -0600 | [diff] [blame] | 29 | --with-directwrite=auto \ |
Behdad Esfahbod | e05e560 | 2021-01-24 12:28:04 -0700 | [diff] [blame] | 30 | "$@" |