diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-06-02 21:31:12 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-06-02 21:31:12 +0000 |
commit | 08f282c2b70d489a5c12a112f49f5c9172a1eb2e (patch) | |
tree | 7f82b719dff7583addbdd51036cfa650eb5095dc /eclass | |
parent | Update to use EAPI=2 due to eclass changes. (diff) | |
download | gentoo-2-08f282c2b70d489a5c12a112f49f5c9172a1eb2e.tar.gz gentoo-2-08f282c2b70d489a5c12a112f49f5c9172a1eb2e.tar.bz2 gentoo-2-08f282c2b70d489a5c12a112f49f5c9172a1eb2e.zip |
add mint support #321827 by Alan Hourihane
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index c7bfdfbcbf75..a963efdbfdee 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.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 <toolchain@gentoo.org> @@ -1421,10 +1421,20 @@ gcc_do_configure() { if [[ ${GCCMAJOR}.${GCCMINOR} > 4.1 ]] ; then confgcc="${confgcc} --disable-bootstrap --disable-libgomp" fi - elif [[ ${CHOST} == mingw* ]] || [[ ${CHOST} == *-mingw* ]] || [[ ${CHOST} == *-cygwin ]] ; then - confgcc="${confgcc} --enable-shared --enable-threads=win32" else - confgcc="${confgcc} --enable-shared --enable-threads=posix" + if tc-is-static-only ; then + confgcc="${confgcc} --disable-shared" + else + confgcc="${confgcc} --enable-shared" + fi + case ${CHOST} in + mingw*|*-mingw*|*-cygwin) + confgcc="${confgcc} --enable-threads=win32" ;; + *-mint*) + confgcc="${confgcc} --disable-threads" ;; + *) + confgcc="${confgcc} --enable-threads=posix" ;; + esac fi [[ ${CTARGET} == *-elf ]] && confgcc="${confgcc} --with-newlib" # __cxa_atexit is "essential for fully standards-compliant handling of @@ -2549,8 +2559,8 @@ is_multilib() { 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 } |