projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5e336f0
)
Pass CFLAGS and LDFLAGS to configure scripts
author
Ian Lynagh
<igloo@earth.li>
Mon, 15 Jun 2009 20:16:04 +0000
(20:16 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Mon, 15 Jun 2009 20:16:04 +0000
(20:16 +0000)
rules/build-package-data.mk
patch
|
blob
|
history
diff --git
a/rules/build-package-data.mk
b/rules/build-package-data.mk
index
3a4db89
..
79591df
100644
(file)
--- 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 += --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.
# 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.