summaryrefslogtreecommitdiff
path: root/rules/build-package-data.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-09-20 23:04:49 +0000
committerIan Lynagh <igloo@earth.li>2010-09-20 23:04:49 +0000
commitf8ddd8a27e49828904ffbefe5871cdfd64731fae (patch)
tree37c3f8149d67182fb6985bbdfa015f821fd79e84 /rules/build-package-data.mk
parent9102e55f42c416f1149df87042cd65716d457315 (diff)
downloadhaskell-f8ddd8a27e49828904ffbefe5871cdfd64731fae.tar.gz
Tell Cabal that we're not building GHCi libs if UseArchivesForGhci=YES
Diffstat (limited to 'rules/build-package-data.mk')
-rw-r--r--rules/build-package-data.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/rules/build-package-data.mk b/rules/build-package-data.mk
index 2732aa3738..d2546380da 100644
--- a/rules/build-package-data.mk
+++ b/rules/build-package-data.mk
@@ -24,6 +24,12 @@ ifeq "$$(filter dyn,$$(GhcLibWays))" "dyn"
$1_$2_CONFIGURE_OPTS += --enable-shared
endif
+ifeq "$$(GhcWithInterpreter) $$(UseArchivesForGhci)" "YES NO"
+$1_$2_CONFIGURE_OPTS += --enable-library-for-ghci
+else
+$1_$2_CONFIGURE_OPTS += --disable-library-for-ghci
+endif
+
ifeq "$$(HSCOLOUR_SRCS)" "YES"
$1_$2_CONFIGURE_OPTS += --with-hscolour="$$(HSCOLOUR_CMD)"
endif