summaryrefslogtreecommitdiff
path: root/rules/build-package.mk
diff options
context:
space:
mode:
authorDuncan Coutts <duncan@well-typed.com>2009-04-28 12:34:52 +0000
committerDuncan Coutts <duncan@well-typed.com>2009-04-28 12:34:52 +0000
commitce14988222b8da2abc57c68a087a61efe5ba709b (patch)
tree0c7a95ff6a1585cb8938e70441633ccefdfa180b /rules/build-package.mk
parentde75026f5a48d3d052135a973ab4dff76c5b20f5 (diff)
downloadhaskell-ce14988222b8da2abc57c68a087a61efe5ba709b.tar.gz
extend the rules/c-objs macro to take the way as a parameter
Previously we only built library package "cbits" the vanilla way, afterall C code does not need to be built differently for profiling builds. However for dynamic libs the C code needs to be built with -fPIC, so we do need to be able to build package .c (and .s?) files multiple ways.
Diffstat (limited to 'rules/build-package.mk')
-rw-r--r--rules/build-package.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/build-package.mk b/rules/build-package.mk
index b2b3093e19..863dc73f2d 100644
--- a/rules/build-package.mk
+++ b/rules/build-package.mk
@@ -123,8 +123,8 @@ $1_$2_SplitObjs = NO
endif
endif
-# C and S files are built only once, not once per way
-$(call c-objs,$1,$2)
+# C and S files are built the "v" vanlilla way
+$(call c-objs,$1,$2,v)
$(call distdir-opts,$1,$2,$3)
$(call c-suffix-rules,$1,$2,v,YES)