[commit: ghc] master: Don't build the HS*.o files when DYNAMIC_BY_DEFAULT (5c43947)

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/5c43947b6917c6b67896d0358da0179b4385ad0e

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

commit 5c43947b6917c6b67896d0358da0179b4385ad0e
Author: Ian Lynagh <[email protected]>
Date:   Fri Oct 12 16:30:52 2012 +0100

    Don't build the HS*.o files when DYNAMIC_BY_DEFAULT
    
    We don't use them (we use the .so/.dll instead), so no point generating
    them.

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

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

diff --git a/rules/build-package-way.mk b/rules/build-package-way.mk
index a4b604f..859d799 100644
--- a/rules/build-package-way.mk
+++ b/rules/build-package-way.mk
@@ -113,6 +113,7 @@ BINDIST_LIBS += $$($1_$2_$3_LIB)
 endif
 
 # Build the GHCi library
+ifneq "$$(DYNLiBS_BY_DEFAULT)" "YES"
 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"
@@ -131,6 +132,7 @@ $(call all-target,$1_$2,$$($1_$2_GHCI_LIB))
 endif
 endif
 endif
+endif
 
 $(call profEnd, build-package-way($1,$2,$3))
 endef
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.