summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorPHO <pho@cielonegro.org>2015-02-23 03:40:05 -0600
committerAustin Seipp <austin@well-typed.com>2015-02-23 03:40:05 -0600
commitbbb57a6b3a31c22a5a24fa4b92abbe13a6736ad8 (patch)
treecc0ba1fdb266cd3e232b6bd75d7ced9fdcb934e8 /rules
parent0fa20726b0587530712677e50a56c2b03ba43095 (diff)
downloadhaskell-bbb57a6b3a31c22a5a24fa4b92abbe13a6736ad8.tar.gz
Make top-level "configure" accept and propagate --with-curses-{includes,libraries} to libraries
Summary: If curses is installed into some non-standard path, we currently have to say something like the following in mk/build.mk: libraries/terminfo_CONFIGURE_OPTS += \ --configure-option=--with-curses-includes=/somewhere/include \ --configure-option=--with-curses-libraries=/somewhere/lib This is because the top-level configure does not accept nor propagate --with-curses-{includes,libraries} to libraries while it does so for iconv, gmp and libffi. It would be nice if curses were handled in the same manner. Test Plan: Install curses into some non-standard path. Then run the top-level "configure" script with options "--with-curses-includes=/path/to/curses/include" and "--with-curses-libraries=/path/to/curses/lib". Reviewers: austin Reviewed By: austin Subscribers: thomie, PHO Differential Revision: https://phabricator.haskell.org/D665 GHC Trac Issues: #10096
Diffstat (limited to 'rules')
-rw-r--r--rules/build-package-data.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/rules/build-package-data.mk b/rules/build-package-data.mk
index 2e610014a2..494b89afc5 100644
--- a/rules/build-package-data.mk
+++ b/rules/build-package-data.mk
@@ -77,6 +77,14 @@ ifneq "$$(GMP_LIB_DIRS)" ""
$1_$2_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="$$(GMP_LIB_DIRS)"
endif
+ifneq "$$(CURSES_INCLUDE_DIRS)" ""
+$1_$2_CONFIGURE_OPTS += --configure-option=--with-curses-includes="$$(CURSES_INCLUDE_DIRS)"
+endif
+
+ifneq "$$(CURSES_LIB_DIRS)" ""
+$1_$2_CONFIGURE_OPTS += --configure-option=--with-curses-libraries="$$(CURSES_LIB_DIRS)"
+endif
+
ifeq "$$(CrossCompiling)" "YES"
$1_$2_CONFIGURE_OPTS += --configure-option=--host=$(TargetPlatformFull)
endif