mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-23 17:17:32 +00:00
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>
This commit is contained in:
committed by
Bart vdr Meulen
parent
7707f0fb54
commit
b81d232a9b
@ -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
|
||||
|
Reference in New Issue
Block a user