summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-05-25 22:16:16 +0000
committerIan Lynagh <igloo@earth.li>2010-05-25 22:16:16 +0000
commit88223168614ea60a5d76a264f6c11837b6c5a443 (patch)
treeb7dd012ae44893ef4cfe89a3f9321128b25a2bcb /rules
parent84e10e6c110f218991fc9573bcb16aa2e647e02c (diff)
downloadhaskell-88223168614ea60a5d76a264f6c11837b6c5a443.tar.gz
Add configure flags for the location of GMP includes/library; fixes #4022
Diffstat (limited to 'rules')
-rw-r--r--rules/build-package-data.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/rules/build-package-data.mk b/rules/build-package-data.mk
index 5882e89a37..93919ffbf0 100644
--- a/rules/build-package-data.mk
+++ b/rules/build-package-data.mk
@@ -42,6 +42,14 @@ ifneq "$$(ICONV_LIB_DIRS)" ""
$1_$2_CONFIGURE_OPTS += --configure-option=--with-iconv-libraries="$$(ICONV_LIB_DIRS)"
endif
+ifneq "$$(GMP_INCLUDE_DIRS)" ""
+$1_$2_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="$$(GMP_INCLUDE_DIRS)"
+endif
+
+ifneq "$$(GMP_LIB_DIRS)" ""
+$1_$2_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="$$(GMP_LIB_DIRS)"
+endif
+
ifeq "$3" "0"
$1_$2_CONFIGURE_OPTS += $$(BOOT_PKG_CONSTRAINTS)
endif