summaryrefslogtreecommitdiff
path: root/rules/hs-suffix-rules-srcdir.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-05-03 20:53:44 +0000
committerIan Lynagh <igloo@earth.li>2009-05-03 20:53:44 +0000
commitfec28e66439061918ff1411be5b13f565e2e5bbc (patch)
treed83100db0d87838ce0727210370c6e53b29982f0 /rules/hs-suffix-rules-srcdir.mk
parentb426d31f065c4f60352bbc8c59d0235e85ffbcc6 (diff)
downloadhaskell-fec28e66439061918ff1411be5b13f565e2e5bbc.tar.gz
Use "-x c" when compiling hc files
Diffstat (limited to 'rules/hs-suffix-rules-srcdir.mk')
-rw-r--r--rules/hs-suffix-rules-srcdir.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/hs-suffix-rules-srcdir.mk b/rules/hs-suffix-rules-srcdir.mk
index aaf22d696d..72a24b2c3a 100644
--- a/rules/hs-suffix-rules-srcdir.mk
+++ b/rules/hs-suffix-rules-srcdir.mk
@@ -55,10 +55,10 @@ endif
# .hs->.o rule, I don't know why --SDM
$1/$2/build/%.$$($3_osuf) : $1/$4/%.hc
- $$(CC) $$($1_$2_$3_ALL_CC_OPTS) -c $$< -o $$@
+ $$(CC) $$($1_$2_$3_ALL_CC_OPTS) -x c -c $$< -o $$@
$1/$2/build/%.$$($3_osuf) : $1/$2/build/%.hc
- $$(CC) $$($1_$2_$3_ALL_CC_OPTS) -c $$< -o $$@
+ $$(CC) $$($1_$2_$3_ALL_CC_OPTS) -x c -c $$< -o $$@
# $1/$2/build/%.$$($3_osuf) : $1/$2/build/%.$$($3_way_)hc
# $$($1_$2_HC) $$($1_$2_$3_ALL_HC_OPTS) -c $$< -o $$@