diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-07-11 21:36:20 +0200 |
---|---|---|
committer | Bart vdr Meulen <bartvdrmeulen@gmail.com> | 2010-07-11 21:36:20 +0200 |
commit | b81d232a9bae21ef1bc896f106a926b66dcae869 (patch) | |
tree | f7d5dc20946087204ba17bde901acc70911bbd70 /config/libc.in | |
parent | 7707f0fb542406fbfe8b1cf6f80ba488a135314a (diff) | |
download | crosstool-ng-b81d232a9bae21ef1bc896f106a926b66dcae869.tar.gz crosstool-ng-b81d232a9bae21ef1bc896f106a926b66dcae869.tar.bz2 crosstool-ng-b81d232a9bae21ef1bc896f106a926b66dcae869.zip |
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 'config/libc.in')
-rw-r--r-- | config/libc.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config/libc.in b/config/libc.in index 58bc320b..2ee46ba3 100644 --- a/config/libc.in +++ b/config/libc.in @@ -35,10 +35,16 @@ config LIBC_SUPPORT_LINUXTHREADS default n select LIBC_SUPPORT_THREADS_ANY +config LIBC_SUPPORT_WIN32THREADS + bool + default n + select LIBC_SUPPORT_THREADS_ANY + config THREADS string default "nptl" if THREADS_NPTL default "linuxthreads" if THREADS_LINUXTHREADS + default "win32" if THREADS_WIN32THREADS default "none" if THREADS_NONE || LIBC_none # No C library, no threads! @@ -51,6 +57,7 @@ choice prompt "Threading implementation to use:" default THREADS_NPTL if LIBC_SUPPORT_NPTL default THREADS_LINUXTHREADS if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL + default THREADS_WIN32 if LIBC_SUPPORT_WIN32THREADS default THREADS_NONE if ! LIBC_SUPPORT_THREADS_ANY config THREADS_NPTL @@ -63,6 +70,11 @@ config THREADS_LINUXTHREADS prompt "linuxthreads" depends on LIBC_SUPPORT_LINUXTHREADS +config THREADS_WIN32THREADS + bool + prompt "win32" + depends on LIBC_SUPPORT_WIN32THREADS + config THREADS_NONE bool prompt "none" |