summaryrefslogtreecommitdiff
path: root/scripts/build/libc/mingw.sh
diff options
context:
space:
mode:
authorNils Petter Eftedal <nilspetter@eftedal.org>2015-04-07 09:04:39 (GMT)
committerNils Petter Eftedal <npe@icd.no>2015-04-08 07:36:57 (GMT)
commit00b68926a8a4575f0064ef0b01fd4a8d21dfb5ab (patch)
treeaafc4275620ed2525f4d66138321ec5a2ff4f069 /scripts/build/libc/mingw.sh
parent2392a3909d59fdbc20e1f5919b58cf1566bab281 (diff)
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>
Diffstat (limited to 'scripts/build/libc/mingw.sh')
-rw-r--r--scripts/build/libc/mingw.sh1
1 files changed, 1 insertions, 0 deletions
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} \