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 | e0a8a8e30914c07f97c0e38045a5663121798412 (patch) | |
tree | b9f7d150d7d7aba19ae115a9247c462bbccfd227 /eclass/toolchain.eclass | |
parent | Update to use EAPI=2 due to eclass changes. (diff) | |
download | historical-e0a8a8e30914c07f97c0e38045a5663121798412.tar.gz historical-e0a8a8e30914c07f97c0e38045a5663121798412.tar.bz2 historical-e0a8a8e30914c07f97c0e38045a5663121798412.zip |
add mint support #321827 by Alan Hourihane
Diffstat (limited to 'eclass/toolchain.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 } |