summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2017-04-24 09:38:14 -0400
committerBen Gamari <ben@smart-cactus.org>2017-04-24 12:53:39 -0400
commitd5cb4d2b7fab89ea1c3fc74da2317f86e75816ea (patch)
tree62a6d099765df27b41497fde62b37413bcf4d522 /ghc.mk
parentab27fdcfe26759f3e4cd7e2105e7e7e83e269e48 (diff)
downloadhaskell-d5cb4d2b7fab89ea1c3fc74da2317f86e75816ea.tar.gz
Disable terminfo, if we don’t build it.
This is a derivation of a patch from @jophish. This is necessary due to `haskeline`'s `terminfo` flag being marked as `Manual` as of 43d7fa106027fcd4ec7f443923a8dd5b8c169f9c. Reviewers: jophish, bgamari, austin Reviewed By: bgamari Subscribers: rwbarton, thomie, jophish Differential Revision: https://phabricator.haskell.org/D3493
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/ghc.mk b/ghc.mk
index a6354ad7b6..d36e681be3 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -471,7 +471,10 @@ endif
ifeq "$(WITH_TERMINFO)" "YES"
PACKAGES_STAGE1 += terminfo
+else
+libraries/haskeline_CONFIGURE_OPTS += --flags=-terminfo
endif
+
PACKAGES_STAGE1 += haskeline
PACKAGES_STAGE1 += ghci