Merge pull request #792 from googlefonts/master
[platform/upstream/libHarfBuzzSharp.git] / mingw32.sh
1 #!/bin/bash
2
3 target=i686-w64-mingw32
4
5 unset CC
6 unset CXX
7 unset CPP
8 unset LD
9 unset LDFLAGS
10 unset CFLAGS
11 unset CXXFLAGS
12 unset PKG_CONFIG_PATH
13
14 # Removed -static from the following
15 export CFLAGS="-static-libgcc"
16 export CXXFLAGS="-static-libgcc -static-libstdc++"
17 export CPPFLAGS="-I$HOME/.local/$target/include -O2"
18 export LDFLAGS=-L$HOME/.local/$target/lib
19 export PKG_CONFIG_LIBDIR=$HOME/.local/$target/lib/pkgconfig
20 export PATH=$HOME/.local/$target/bin:$PATH
21
22 ../configure --build=`../config.guess` --host=$target --prefix=$HOME/.local/$target "$@"