Fix test for GHCi lib building
authorIan Lynagh <ian@well-typed.com>
Sat, 13 Oct 2012 15:52:48 +0000 (16:52 +0100)
committerIan Lynagh <ian@well-typed.com>
Sat, 13 Oct 2012 15:52:48 +0000 (16:52 +0100)
rules/build-package-way.mk

index 722f8bf..9420aa4 100644 (file)
@@ -113,7 +113,9 @@ BINDIST_LIBS += $$($1_$2_$3_LIB)
 endif
 
 # Build the GHCi library
-ifneq "$$(DYNLIBS_BY_DEFAULT)" "YES"
+ifeq "$$(DYNAMIC_BY_DEFAULT)" "YES"
+$1_$2_GHCI_LIB = $$($1_$2_dyn_LIB)
+else
 ifeq "$3" "v"
 $1_$2_GHCI_LIB = $1/$2/build/HS$$($1_PACKAGE)-$$($1_$2_VERSION).$$($3_osuf)
 ifeq "$$($1_$2_BUILD_GHCI_LIB)" "YES"