From 00b68926a8a4575f0064ef0b01fd4a8d21dfb5ab Mon Sep 17 00:00:00 2001 From: Nils Petter Eftedal Date: Tue, 7 Apr 2015 11:04:39 +0200 Subject: 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 diff --git a/scripts/build/libc/mingw.sh b/scripts/build/libc/mingw.sh index 2d364cb..94b7705 100644 --- a/scripts/build/libc/mingw.sh +++ b/scripts/build/libc/mingw.sh @@ -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} \ -- cgit v0.10.2-6-g49f6