summaryrefslogtreecommitdiff
path: root/rules/build-package-data.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-06-15 20:16:04 +0000
committerIan Lynagh <igloo@earth.li>2009-06-15 20:16:04 +0000
commitf75901581bf98293fe825b726326da92d2723003 (patch)
tree9f09badc846940842b879e02c0c9f268e3a9c0d4 /rules/build-package-data.mk
parent5e336f0905ca3676f75543b98d767b051f2212e7 (diff)
downloadhaskell-f75901581bf98293fe825b726326da92d2723003.tar.gz
Pass CFLAGS and LDFLAGS to configure scripts
Diffstat (limited to 'rules/build-package-data.mk')
-rw-r--r--rules/build-package-data.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules/build-package-data.mk b/rules/build-package-data.mk
index 3a4db89170..79591dff42 100644
--- a/rules/build-package-data.mk
+++ b/rules/build-package-data.mk
@@ -20,6 +20,9 @@ ifeq "$(HSCOLOUR_SRCS)" "YES"
$1_$2_CONFIGURE_OPTS += --with-hscolour="$$(HSCOLOUR)"
endif
+$1_$2_CONFIGURE_OPTS += --configure-option=CFLAGS="$$(SRC_CC_OPTS) $$($1_CC_OPTS) $$($1_$2_CC_OPTS)"
+$1_$2_CONFIGURE_OPTS += --configure-option=LDFLAGS="$$(SRC_LD_OPTS) $$($1_LD_OPTS) $$($1_$2_LD_OPTS)"
+
# This rule configures the package, generates the package-data.mk file
# for our build system, and registers the package for use in-place in
# the build tree.