summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDuncan Coutts <dcoutts@gentoo.org>2006-03-01 12:54:35 +0000
committerDuncan Coutts <dcoutts@gentoo.org>2006-03-01 12:54:35 +0000
commit12843e21b7bb71cf755f17b56fd735e2fd2ba219 (patch)
treeffcf7a10949dc2f48d73ad999aa921dc7944ba13 /eclass
parentChanged ppc64 to ~ppc64, was marked stable by mistake. (diff)
downloadhistorical-12843e21b7bb71cf755f17b56fd735e2fd2ba219.tar.gz
historical-12843e21b7bb71cf755f17b56fd735e2fd2ba219.tar.bz2
historical-12843e21b7bb71cf755f17b56fd735e2fd2ba219.zip
Don't build GHCi libs for arches that do not support GHCi.
Also building GHCi libs on ppc64 causes "TOC overflow".
Diffstat (limited to 'eclass')
-rw-r--r--eclass/haskell-cabal.eclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/haskell-cabal.eclass b/eclass/haskell-cabal.eclass
index 3fc742765048..24ece5339e5f 100644
--- a/eclass/haskell-cabal.eclass
+++ b/eclass/haskell-cabal.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.4 2006/02/16 14:10:51 dcoutts Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.5 2006/03/01 12:54:35 dcoutts Exp $
#
# Original authors: Andres Loeh <kosmikus@gentoo.org>
# Duncan Coutts <dcoutts@gentoo.org>
@@ -126,6 +126,11 @@ cabal-configure() {
cabalconf="${cabalconf} --enable-executable-profiling";
cabalconf="${cabalconf} --enable-library-profiling"
fi
+ # Don't build GHCi libs for arches that do not support GHCi.
+ # Also building GHCi libs on ppc64 causes "TOC overflow".
+ if use alpha || use ppc64; then
+ cabalconf="${cabalconf} --disable-library-for-ghci"
+ fi
./setup configure \
--ghc --prefix=/usr \