diff options
author | 2007-07-28 13:36:16 +0000 | |
---|---|---|
committer | 2007-07-28 13:36:16 +0000 | |
commit | fc61131b4121e60c422938d65ce65d7f9d0e0191 (patch) | |
tree | 42a7c6af687dcf03dbf546e7ff9fe1a543f8aff9 /dev-lang/ghc/ghc-6.6.1.ebuild | |
parent | stale mask removed (diff) | |
download | historical-fc61131b4121e60c422938d65ce65d7f9d0e0191.tar.gz historical-fc61131b4121e60c422938d65ce65d7f9d0e0191.tar.bz2 historical-fc61131b4121e60c422938d65ce65d7f9d0e0191.zip |
Disable the split objects feature in GHC 6.6.1 when using >=gcc-4.2.
Package-Manager: portage-2.1.3
Diffstat (limited to 'dev-lang/ghc/ghc-6.6.1.ebuild')
-rw-r--r-- | dev-lang/ghc/ghc-6.6.1.ebuild | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/dev-lang/ghc/ghc-6.6.1.ebuild b/dev-lang/ghc/ghc-6.6.1.ebuild index 0b5954b00279..e91299ac76ec 100644 --- a/dev-lang/ghc/ghc-6.6.1.ebuild +++ b/dev-lang/ghc/ghc-6.6.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ghc/ghc-6.6.1.ebuild,v 1.6 2007/07/25 17:49:45 dcoutts Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ghc/ghc-6.6.1.ebuild,v 1.7 2007/07/28 13:36:16 kolmodin Exp $ # Brief explanation of the bootstrap logic: # @@ -28,7 +28,7 @@ # re-emerge ghc (or ghc-bin). People using vanilla gcc can switch between # gcc-3.x and 4.x with no problems. -inherit base eutils flag-o-matic toolchain-funcs ghc-package +inherit base eutils flag-o-matic toolchain-funcs ghc-package versionator DESCRIPTION="The Glasgow Haskell Compiler" HOMEPAGE="http://www.haskell.org/ghc/" @@ -242,6 +242,11 @@ src_compile() { echo "GhcNotThreaded=YES" >> mk/build.mk fi + # GHC <6.8 doesn't support GCC >=4.2, split objects fails. + if version_is_at_least "4.2" "$(gcc-version)"; then + echo "SplitObjs=NO" >> mk/build.mk + fi + # Get ghc from the unpacked binary .tbz2 # except when bootstrapping we just pick ghc up off the path use ghcbootstrap || \ |