summaryrefslogtreecommitdiff
path: root/mk/build.mk.sample
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-09-09 11:57:57 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-09-09 11:57:57 +0000
commitd6d0a196363d44008a4850cddf727f06b42644f9 (patch)
tree1ff8a7a7ca25ea454aeb730298e841556f62e8da /mk/build.mk.sample
parenta4f81c1d128c5a77f47d37c6fe069186c128a37d (diff)
downloadhaskell-d6d0a196363d44008a4850cddf727f06b42644f9.tar.gz
Fix up logic to decide whether shared libs are being built or not
Now, adding dyn to $(GhcLibWays) is how shared libs are enabled. Everything else keys off that, rather than testing $(BuildSharedLibs).
Diffstat (limited to 'mk/build.mk.sample')
-rw-r--r--mk/build.mk.sample4
1 files changed, 4 insertions, 0 deletions
diff --git a/mk/build.mk.sample b/mk/build.mk.sample
index 5b61d16f4b..b43ef94dc8 100644
--- a/mk/build.mk.sample
+++ b/mk/build.mk.sample
@@ -40,6 +40,10 @@ GhcHcOpts = -Rghc-timing
GhcLibHcOpts = -O2 -XGenerics
GhcLibWays += p
+ifeq "$(PlatformSupportsSharedLibs)" "YES"
+GhcLibWays += dyn
+endif
+
endif
# -------- A Fast build ------------------------------------------------------