summaryrefslogtreecommitdiff
path: root/rules/distdir-way-opts.mk
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-09-29 10:38:11 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-09-29 10:38:11 +0000
commiteab91b9df6cd3eab7ba1b2ed0f0e649b314611bc (patch)
treece00b45f1005d110b43d0df59610ff66004c9d1c /rules/distdir-way-opts.mk
parentc475d44b32c22d6cd2fd830c6fd52f77fded9865 (diff)
downloadhaskell-eab91b9df6cd3eab7ba1b2ed0f0e649b314611bc.tar.gz
No need to use -split-objs with dynamic libraries
Diffstat (limited to 'rules/distdir-way-opts.mk')
-rw-r--r--rules/distdir-way-opts.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/distdir-way-opts.mk b/rules/distdir-way-opts.mk
index 3fc8813ebf..fc805979e8 100644
--- a/rules/distdir-way-opts.mk
+++ b/rules/distdir-way-opts.mk
@@ -46,7 +46,7 @@ $1_$2_$3_MOST_HC_OPTS = \
$$(foreach opt,$$($1_$2_CPP_OPTS),-optP$$(opt)) \
$$(if $$($1_PACKAGE),-optP-include -optP$1/$2/build/autogen/cabal_macros.h) \
$$(foreach pkg,$$($1_$2_DEPS),-package $$(pkg)) \
- $$(if $$(findstring YES,$$($1_$2_SplitObjs)),-split-objs,) \
+ $$(if $$(findstring YES,$$($1_$2_SplitObjs)),$$(if $$(findstring dyn,$3),,-split-objs),) \
$$($1_$2_HC_OPTS) \
$$($1_$2_EXTRA_HC_OPTS) \
$$($1_$2_$3_HC_OPTS) \