From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OJvWw-0001Tn-Nx for garchives@archives.gentoo.org; Wed, 02 Jun 2010 21:31:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DE87FE082B; Wed, 2 Jun 2010 21:31:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B5E43E082B for ; Wed, 2 Jun 2010 21:31:14 +0000 (UTC) Received: from corvid.gentoo.org (corvid.gentoo.org [208.92.234.79]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 48B521B41F2 for ; Wed, 2 Jun 2010 21:31:14 +0000 (UTC) Received: by corvid.gentoo.org (Postfix, from userid 559) id 2BF872CE14; Wed, 2 Jun 2010 21:31:12 +0000 (UTC) From: "Mike Frysinger (vapier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, vapier@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: toolchain.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: toolchain.eclass X-VCS-Directories: eclass X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger Content-Type: text/plain; charset=utf8 Message-Id: <20100602213113.2BF872CE14@corvid.gentoo.org> Date: Wed, 2 Jun 2010 21:31:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 1ad2c142-13e9-462f-b17e-7dab382de4d2 X-Archives-Hash: 99f1d53ffd43b3be25bfcbf7e9f3119d vapier 10/06/02 21:31:12 Modified: toolchain.eclass Log: add mint support #321827 by Alan Hourihane Revision Changes Path 1.427 eclass/toolchain.eclass file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.e= class?rev=3D1.427&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.e= class?rev=3D1.427&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.e= class?r1=3D1.426&r2=3D1.427 Index: toolchain.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v retrieving revision 1.426 retrieving revision 1.427 diff -u -r1.426 -r1.427 --- toolchain.eclass 25 May 2010 23:24:18 -0000 1.426 +++ toolchain.eclass 2 Jun 2010 21:31:12 -0000 1.427 @@ -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.426 2010/= 05/25 23:24:18 dirtyepic Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.427 2010/= 06/02 21:31:12 vapier Exp $ # # Maintainer: Toolchain Ninjas =20 @@ -1421,10 +1421,20 @@ if [[ ${GCCMAJOR}.${GCCMINOR} > 4.1 ]] ; then confgcc=3D"${confgcc} --disable-bootstrap --disable-libgomp" fi - elif [[ ${CHOST} =3D=3D mingw* ]] || [[ ${CHOST} =3D=3D *-mingw* ]] || = [[ ${CHOST} =3D=3D *-cygwin ]] ; then - confgcc=3D"${confgcc} --enable-shared --enable-threads=3Dwin32" else - confgcc=3D"${confgcc} --enable-shared --enable-threads=3Dposix" + if tc-is-static-only ; then + confgcc=3D"${confgcc} --disable-shared" + else + confgcc=3D"${confgcc} --enable-shared" + fi + case ${CHOST} in + mingw*|*-mingw*|*-cygwin) + confgcc=3D"${confgcc} --enable-threads=3Dwin32" ;; + *-mint*) + confgcc=3D"${confgcc} --disable-threads" ;; + *) + confgcc=3D"${confgcc} --enable-threads=3Dposix" ;; + esac fi [[ ${CTARGET} =3D=3D *-elf ]] && confgcc=3D"${confgcc} --with-newlib" # __cxa_atexit is "essential for fully standards-compliant handling of @@ -2549,8 +2559,8 @@ case ${CTARGET} in mips64*|powerpc64*|s390x*|sparc*|x86_64*) has_multilib_profile || use multilib ;; - *-*-solaris*) use multilib ;; - *-apple-darwin*) use multilib ;; + *-*-solaris*|*-apple-darwin*|*-mint*) + use multilib ;; *) false ;; esac }