summaryrefslogtreecommitdiff
path: root/scripts/build/cc
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-07-11 19:36:20 (GMT)
committerBart vdr Meulen <bartvdrmeulen@gmail.com>2010-07-11 19:36:20 (GMT)
commitb81d232a9bae21ef1bc896f106a926b66dcae869 (patch)
treef7d5dc20946087204ba17bde901acc70911bbd70 /scripts/build/cc
parent7707f0fb542406fbfe8b1cf6f80ba488a135314a (diff)
kernel: add mingw
Add the option to build a cross-compiler for kernel type 'mingw'. The resulting cross-compiler can be used to build applications on a Linux host that can be run on a Windows target. Compiler is build using the mingwrt and w32-api packages aviable from the MinGW project (http://sourceforge.net/projects/mingw). The windows headers (w32-api package) are extracting with the kernel_headers step The libraries and other headers from both packages are build and installed in the various steps of libc Signed-off-by: Bart vdr Meulen <bartvdrmeulen@gmail.com> [yann.morin.1998@anciens.enib.fr: fix kernel headers comment, don't "return 0"] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/build/cc')
-rw-r--r--scripts/build/cc/gcc.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index c4373c1..3fb6ca0 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -68,6 +68,8 @@ do_cc_core_pass_2() {
,,nptl)
do_cc_core mode=shared build_libgcc=yes
;;
+ ,,win32) do_cc_core mode=static build_libgcc=yes
+ ;;
*) if [ "${CT_CC_GCC_4_3_or_later}" = "y" ]; then
do_cc_core mode=static build_libgcc=yes
else
@@ -361,7 +363,12 @@ do_cc() {
extra_config+=("--disable-libgomp")
fi
else
- extra_config+=("--enable-threads=posix")
+ if [ "${CT_THREADS}" = "win32" ]; then
+ extra_config+=("--enable-threads=win32")
+ extra_config+=("--disable-win32-registry")
+ else
+ extra_config+=("--enable-threads=posix")
+ fi
fi
if [ "${CT_CC_GCC_ENABLE_TARGET_OPTSPACE}" = "y" ]; then