diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2018-02-16 14:13:38 -0800 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2018-02-16 14:16:28 -0800 |
commit | b1f186df78ed14cbc8be919e7f552df2bd7561e0 (patch) | |
tree | be2175cb6b1cc110e2ae80c50f78da7642699b70 /mingw32.sh | |
parent | d37310ac5d5f8a3fd1ce1e535647e7c6bb0d7926 (diff) | |
download | harfbuzz-b1f186df78ed14cbc8be919e7f552df2bd7561e0.tar.gz |
Add mingw32.sh and mingw64.sh
Diffstat (limited to 'mingw32.sh')
-rwxr-xr-x | mingw32.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mingw32.sh b/mingw32.sh new file mode 100755 index 00000000..67744051 --- /dev/null +++ b/mingw32.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +target=i686-w64-mingw32 + +unset CC +unset CXX +unset CPP +unset LD +unset LDFLAGS +unset CFLAGS +unset CXXFLAGS +unset PKG_CONFIG_PATH + +# Removed -static from the following +export CFLAGS="-static-libgcc" +export CXXFLAGS="-static-libgcc -static-libstdc++" +export CPPFLAGS="-I$HOME/.local/$target/include -O2" +export LDFLAGS=-L$HOME/.local/$target/lib +export PKG_CONFIG_LIBDIR=$HOME/.local/$target/lib/pkgconfig +export PATH=$HOME/.local/$target/bin:$PATH + +../configure --build=`../config.guess` --host=$target --prefix=$HOME/.local/$target "$@" |