summaryrefslogtreecommitdiff
path: root/rules/build-package-data.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-07-23 22:30:59 +0000
committerIan Lynagh <igloo@earth.li>2010-07-23 22:30:59 +0000
commit30fad70245d9ddfae0b781460bc51468a01f92f6 (patch)
tree47fd8aaf1fd55b190c1e84f38a356b1c4cbbb6f7 /rules/build-package-data.mk
parentae8cc32e169e8d958f257714c1ae727e1a56a5e0 (diff)
downloadhaskell-30fad70245d9ddfae0b781460bc51468a01f92f6.tar.gz
Use different CC/LD options for different stages
Diffstat (limited to 'rules/build-package-data.mk')
-rw-r--r--rules/build-package-data.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/build-package-data.mk b/rules/build-package-data.mk
index f508b8163a..2732aa3738 100644
--- a/rules/build-package-data.mk
+++ b/rules/build-package-data.mk
@@ -31,7 +31,7 @@ endif
# We filter out -Werror from SRC_CC_OPTS, because when configure tests
# for a feature it may not generate warning-free C code, and thus may
# think that the feature doesn't exist if -Werror is on.
-$1_$2_CONFIGURE_OPTS += --configure-option=CFLAGS="$$(filter-out -Werror,$$(SRC_CC_OPTS)) $$(CONF_CC_OPTS) $$($1_CC_OPTS) $$($1_$2_CC_OPTS)"
+$1_$2_CONFIGURE_OPTS += --configure-option=CFLAGS="$$(filter-out -Werror,$$(SRC_CC_OPTS)) $$(CONF_CC_OPTS_STAGE$3) $$($1_CC_OPTS) $$($1_$2_CC_OPTS)"
$1_$2_CONFIGURE_OPTS += --configure-option=LDFLAGS="$$(SRC_LD_OPTS) $$($1_LD_OPTS) $$($1_$2_LD_OPTS)"
ifneq "$$(ICONV_INCLUDE_DIRS)" ""