[commit: ghc] master: Fix test for GHCi lib building (22df953)

Ian Lynagh <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/22df9533d0a0a51268135ce46c0ca9ffcbbaa82a

>---------------------------------------------------------------

commit 22df9533d0a0a51268135ce46c0ca9ffcbbaa82a
Author: Ian Lynagh <[email protected]>
Date:   Sat Oct 13 16:52:48 2012 +0100

    Fix test for GHCi lib building

>---------------------------------------------------------------

 rules/build-package-way.mk |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/rules/build-package-way.mk b/rules/build-package-way.mk
index 722f8bf..9420aa4 100644
--- a/rules/build-package-way.mk
+++ b/rules/build-package-way.mk
@@ -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"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.