---
 mk/config.mk.in |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/mk/config.mk.in b/mk/config.mk.in
index 275c21a..de55f0d 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -135,8 +135,12 @@ ifeq "$(TargetOS_CPP)" "mingw32"
 # This doesn't work on Windows yet
 DYNAMIC_GHC_PROGRAMS = NO
 else
+ifeq "$(PlatformSupportsSharedLibs)" "NO"
+DYNAMIC_GHC_PROGRAMS = NO
+else
 DYNAMIC_GHC_PROGRAMS = YES
 endif
+endif
 
 # Build a compiler that will build *unregisterised* libraries and
 # binaries by default.  Unregisterised code is supposed to compile and
-- 
1.7.3.2


_______________________________________________
ghc-devs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/ghc-devs

Reply via email to