mingw.sh: added with sysroot argument to mingw configure

The argument will prevent the prefix path from being added as an include path while building mingw. Having the prefix as an include path might cause all kinds of weird issues if prefix directory also exists on the build machine.

Signed-off-by: Nils Petter Eftedal <nilspetter@eftedal.org>
This commit is contained in:
Nils Petter Eftedal 2015-04-07 11:04:39 +02:00 committed by Nils Petter Eftedal
parent 2392a3909d
commit 00b68926a8

View File

@ -89,6 +89,7 @@ do_libc() {
do_set_mingw_install_prefix
CT_DoExecLog CFG \
"${CT_SRC_DIR}/mingw-w64-v${CT_WINAPI_VERSION}/mingw-w64-crt/configure" \
--with-sysroot=${CT_SYSROOT_DIR} \
--prefix=${MINGW_INSTALL_PREFIX} \
--build=${CT_BUILD} \
--host=${CT_TARGET} \