diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2019-11-10 18:21:50 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2019-11-10 18:27:10 +0000 |
commit | bdd18e075861196fd48b1b4f45f86f122715e413 (patch) | |
tree | 37c03079e9b4f465deead2072c0c5503b33dd533 /eclass/toolchain.eclass | |
parent | media-libs/libprojectm: 3.1.1_rc6 version bump (diff) | |
download | gentoo-bdd18e075861196fd48b1b4f45f86f122715e413.tar.gz gentoo-bdd18e075861196fd48b1b4f45f86f122715e413.tar.bz2 gentoo-bdd18e075861196fd48b1b4f45f86f122715e413.zip |
toolchain.eclass: advertise fortran support for >=gcc-4.2+
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 99643eafdd0f..a3081c38bac1 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -147,11 +147,13 @@ tc_has_feature() { } if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then - IUSE+=" altivec debug +cxx +fortran +nptl" TC_FEATURES+=(fortran nptl) + IUSE+=" altivec debug +cxx +nptl" TC_FEATURES+=(nptl) [[ -n ${PIE_VER} ]] && IUSE+=" nopie" [[ -n ${HTB_VER} ]] && IUSE+=" boundschecking" [[ -n ${D_VER} ]] && IUSE+=" d" [[ -n ${SPECS_VER} ]] && IUSE+=" nossp" + # fortran support appeared in 4.1, but 4.1 needs outdated mpfr + tc_version_is_at_least 4.2 && IUSE+=" +fortran" TC_FEATURES+=(fortran) tc_version_is_at_least 3 && IUSE+=" doc hardened multilib objc" tc_version_is_between 3 7 && IUSE+=" awt gcj" TC_FEATURES+=(gcj) tc_version_is_at_least 3.3 && IUSE+=" pgo" |