summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-05-30 15:47:47 +0000
committerMike Frysinger <vapier@gentoo.org>2012-05-30 15:47:47 +0000
commit737a67bcb6612ce364a74fc66130b8b4c0c0e32d (patch)
tree9bca3af5935312d54e44cd2c0c1f157b700b7645 /eclass/toolchain.eclass
parentPin llvm version by Franz Fellner <alpine.art.de@googlemail.com> wrt bug #418... (diff)
downloadgentoo-2-737a67bcb6612ce364a74fc66130b8b4c0c0e32d.tar.gz
gentoo-2-737a67bcb6612ce364a74fc66130b8b4c0c0e32d.tar.bz2
gentoo-2-737a67bcb6612ce364a74fc66130b8b4c0c0e32d.zip
handle mingw64 targets in the libc cross-compiler logic #417793 by Matt Whitlock
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 8c60978c38dd..a152ecf813bc 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.539 2012/05/22 05:08:29 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.540 2012/05/30 15:47:47 vapier Exp $
#
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
@@ -1125,7 +1125,9 @@ gcc_do_configure() {
*-gnu*) needed_libc=glibc;;
*-klibc) needed_libc=klibc;;
*-uclibc*) needed_libc=uclibc;;
- *-cygwin) needed_libc=cygwin;;
+ *-cygwin) needed_libc=cygwin;;
+ x86_64-*-mingw*|\
+ *-w64-mingw*) needed_libc=mingw64-runtime;;
mingw*|*-mingw*) needed_libc=mingw-runtime;;
avr) confgcc+=" --enable-shared --disable-threads";;
esac