]> git.tdb.fi Git - ext/subsurface.git/blob - packaging/windows/mingw-make.sh
Fix mingw-make.sh to find correct xslt-config
[ext/subsurface.git] / packaging / windows / mingw-make.sh
1 #!/bin/bash
2 #
3 # just a small shell script that is used to invoke make with the right
4 # parameters to cross compile a binary for Windows
5 #
6 # the paths work for the default mingw32 install on OpenSUSE - adjust as
7 # necessary
8
9 export PATH=/usr/i686-w64-mingw32/sys-root/mingw/bin:$PATH
10 make CC=i686-w64-mingw32-gcc \
11         PKGCONFIG=i686-w64-mingw32-pkg-config \
12         PKG_CONFIG_PATH=/usr/i686-w64-mingw32/sys-root/i686-w64-mingw32/lib/pkgconfig/ \
13         XSLTCONFIG=/usr/i686-w64-mingw32/sys-root/mingw/bin/xslt-config \
14         XML2CONFIG=/usr/i686-w64-mingw32/sys-root/mingw/bin/xml2-config NAME=subsurface.exe