Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: toolchain.eclass
Date: Wed, 02 Jun 2010 21:31:19
Message-Id: 20100602213113.2BF872CE14@corvid.gentoo.org
1 vapier 10/06/02 21:31:12
2
3 Modified: toolchain.eclass
4 Log:
5 add mint support #321827 by Alan Hourihane
6
7 Revision Changes Path
8 1.427 eclass/toolchain.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.427&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.427&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.426&r2=1.427
13
14 Index: toolchain.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v
17 retrieving revision 1.426
18 retrieving revision 1.427
19 diff -u -r1.426 -r1.427
20 --- toolchain.eclass 25 May 2010 23:24:18 -0000 1.426
21 +++ toolchain.eclass 2 Jun 2010 21:31:12 -0000 1.427
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2008 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.426 2010/05/25 23:24:18 dirtyepic Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.427 2010/06/02 21:31:12 vapier Exp $
27 #
28 # Maintainer: Toolchain Ninjas <toolchain@g.o>
29
30 @@ -1421,10 +1421,20 @@
31 if [[ ${GCCMAJOR}.${GCCMINOR} > 4.1 ]] ; then
32 confgcc="${confgcc} --disable-bootstrap --disable-libgomp"
33 fi
34 - elif [[ ${CHOST} == mingw* ]] || [[ ${CHOST} == *-mingw* ]] || [[ ${CHOST} == *-cygwin ]] ; then
35 - confgcc="${confgcc} --enable-shared --enable-threads=win32"
36 else
37 - confgcc="${confgcc} --enable-shared --enable-threads=posix"
38 + if tc-is-static-only ; then
39 + confgcc="${confgcc} --disable-shared"
40 + else
41 + confgcc="${confgcc} --enable-shared"
42 + fi
43 + case ${CHOST} in
44 + mingw*|*-mingw*|*-cygwin)
45 + confgcc="${confgcc} --enable-threads=win32" ;;
46 + *-mint*)
47 + confgcc="${confgcc} --disable-threads" ;;
48 + *)
49 + confgcc="${confgcc} --enable-threads=posix" ;;
50 + esac
51 fi
52 [[ ${CTARGET} == *-elf ]] && confgcc="${confgcc} --with-newlib"
53 # __cxa_atexit is "essential for fully standards-compliant handling of
54 @@ -2549,8 +2559,8 @@
55 case ${CTARGET} in
56 mips64*|powerpc64*|s390x*|sparc*|x86_64*)
57 has_multilib_profile || use multilib ;;
58 - *-*-solaris*) use multilib ;;
59 - *-apple-darwin*) use multilib ;;
60 + *-*-solaris*|*-apple-darwin*|*-mint*)
61 + use multilib ;;
62 *) false ;;
63 esac
64 }