From faf8ad06ec3c48fe689dc76f645cfc488d50da99 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 28 Nov 2008 09:20:34 +0000 Subject: add cygwin targets --- eclass/toolchain.eclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'eclass') diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index d72ce3607830..950a7cf8fa4a 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.366 2008/11/09 20:27:43 solar Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.367 2008/11/28 09:20:34 vapier Exp $ # # Maintainer: Toolchain Ninjas @@ -1321,6 +1321,7 @@ gcc_do_configure() { *-gnu*) needed_libc=glibc;; *-klibc) needed_libc=klibc;; *-uclibc*) needed_libc=uclibc;; + *-cygwin) needed_libc=cygwin;; mingw*|*-mingw*) needed_libc=mingw-runtime;; avr) confgcc="${confgcc} --enable-shared --disable-threads";; esac @@ -1337,7 +1338,7 @@ gcc_do_configure() { if [[ ${GCCMAJOR}.${GCCMINOR} > 4.1 ]] ; then confgcc="${confgcc} --disable-bootstrap --disable-libgomp" fi - elif [[ ${CHOST} == mingw* ]] || [[ ${CHOST} == *-mingw* ]] ; then + elif [[ ${CHOST} == mingw* ]] || [[ ${CHOST} == *-mingw* ]] || [[ ${CHOST} == *-cygwin ]] ; then confgcc="${confgcc} --enable-shared --enable-threads=win32" else confgcc="${confgcc} --enable-shared --enable-threads=posix" -- cgit v1.2.3-65-gdbad