summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-03-01 22:29:19 +0000
committerIan Lynagh <ian@well-typed.com>2013-03-01 22:31:22 +0000
commitdd9da49ceda5bd0d6c860604ace0ca9829199fe5 (patch)
treedf23215803829e60750ec4666987a9d256f7655d /ghc.mk
parentffb2a8c216ad8791422008cc92c8048f4528bbf4 (diff)
downloadhaskell-dd9da49ceda5bd0d6c860604ace0ca9829199fe5.tar.gz
Fix when terminfo is built; fixes #7700
We now use the 'host' to determine whether stage0 builds terminfo, and 'target' to determine whether stage1 does. We don't build it if the platform is either Windows or ios.
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/ghc.mk b/ghc.mk
index 1cf5f86e34..319522a638 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -351,8 +351,10 @@ else
PACKAGES_STAGE0 = Cabal/Cabal hpc bin-package-db hoopl transformers
ifeq "$(Windows_Host)" "NO"
+ifneq "$(HostOS_CPP)" "ios"
PACKAGES_STAGE0 += terminfo
endif
+endif
PACKAGES_STAGE1 += ghc-prim
PACKAGES_STAGE1 += $(INTEGER_LIBRARY)
@@ -397,9 +399,11 @@ endif
REGULAR_INSTALL_PACKAGES += $(addprefix libraries/,$(PACKAGES_STAGE2))
PACKAGES_STAGE1 += xhtml
-ifeq "$(Windows_Host)" "NO"
+ifeq "$(Windows_Target)" "NO"
+ifneq "$(TargetOS_CPP)" "ios"
PACKAGES_STAGE1 += terminfo
endif
+endif
PACKAGES_STAGE1 += haskeline
# If we have built the programs with dynamic libraries, then