[commit: integer-gmp] master: Fix build when gmp isn't installed (2ec5614)

Ian Lynagh igloo at earth.li
Sun Apr 28 21:04:33 CEST 2013


Repository : ssh://darcs.haskell.org//srv/darcs/packages/integer-gmp

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/2ec5614accc260542791ef71da5eaa6e4443b8e5

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

commit 2ec5614accc260542791ef71da5eaa6e4443b8e5
Author: Ian Lynagh <ian at well-typed.com>
Date:   Sun Apr 28 17:12:57 2013 +0100

    Fix build when gmp isn't installed

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

 mkGmpDerivedConstants/ghc.mk |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/mkGmpDerivedConstants/ghc.mk b/mkGmpDerivedConstants/ghc.mk
index 9903aa6..6c06224 100644
--- a/mkGmpDerivedConstants/ghc.mk
+++ b/mkGmpDerivedConstants/ghc.mk
@@ -24,3 +24,9 @@ GmpDerivedConstants_HEADER = libraries/integer-gmp/mkGmpDerivedConstants/dist/Gm
 $(GmpDerivedConstants_HEADER): $(mkGmpDerivedConstants_INPLACE)
 	$< > $@
 
+ifneq "$(HaveLibGmp)" "YES"
+ifneq "$(HaveFrameworkGMP)" "YES"
+$(libraries/integer-gmp/mkGmpDerivedConstants_dist_depfile_c_asm): libraries/integer-gmp/gmp/gmp.h
+endif
+endif
+





More information about the ghc-commits mailing list