gcc-4.1.2.ebuild 661 B

123456789101112131415161718192021222324252627282930
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. PATCH_VER="1.6"
  5. UCLIBC_VER="1.0"
  6. D_VER="0.24"
  7. inherit eutils toolchain
  8. KEYWORDS="-* alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~sparc-fbsd ~x86-fbsd"
  9. RDEPEND=""
  10. DEPEND="${RDEPEND}
  11. ppc? ( >=${CATEGORY}/binutils-2.17 )
  12. ppc64? ( >=${CATEGORY}/binutils-2.17 )
  13. >=${CATEGORY}/binutils-2.15.94"
  14. src_prepare() {
  15. toolchain_src_prepare
  16. use vanilla && return 0
  17. # Fix cross-compiling
  18. epatch "${FILESDIR}"/4.1.0/gcc-4.1.0-cross-compile.patch
  19. epatch "${FILESDIR}"/4.1.0/gcc-4.1.0-fast-math-i386-Os-workaround.patch
  20. }