summaryrefslogtreecommitdiff
path: root/compiler/ghc.mk
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2017-02-28 09:27:04 -0500
committerBen Gamari <ben@smart-cactus.org>2017-02-28 10:56:07 -0500
commitc686af5818686efb55cfd81ac104027c959d6277 (patch)
treef30c9924759689db56fc1e7a684392a54fea697f /compiler/ghc.mk
parentc662d41e2006f5a45619d40d2369b24642348f1a (diff)
downloadhaskell-c686af5818686efb55cfd81ac104027c959d6277.tar.gz
Add flag allowing convenient disabling of terminfo support
This is a common thing that users who cross-compile must fight against. It turns out that it's pretty straightforward to make is convenient. Test Plan: Cross compile without a target `ncurses` available Reviewers: danharaj, hvr, erikd, austin, rwbarton Subscribers: rwbarton, thomie, snowleopard Differential Revision: https://phabricator.haskell.org/D3177
Diffstat (limited to 'compiler/ghc.mk')
-rw-r--r--compiler/ghc.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/ghc.mk b/compiler/ghc.mk
index ce41eca052..36603a472c 100644
--- a/compiler/ghc.mk
+++ b/compiler/ghc.mk
@@ -361,6 +361,10 @@ compiler_CONFIGURE_OPTS += --ghc-option=-DNOSMP
compiler_CONFIGURE_OPTS += --ghc-option=-optc-DNOSMP
endif
+ifeq "$(WITH_TERMINFO)" "NO"
+compiler_stage2_CONFIGURE_OPTS += --flags=-terminfo
+endif
+
# Careful optimisation of the parser: we don't want to throw everything
# at it, because that takes too long and doesn't buy much, but we do want
# to inline certain key external functions, so we instruct GHC not to