Tell Cabal that we're not building GHCi libs if UseArchivesForGhci=YES
authorIan Lynagh <igloo@earth.li>
Mon, 20 Sep 2010 23:04:49 +0000 (23:04 +0000)
committerIan Lynagh <igloo@earth.li>
Mon, 20 Sep 2010 23:04:49 +0000 (23:04 +0000)
rules/build-package-data.mk

index 2732aa3..d254638 100644 (file)
@@ -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