[PATCH 1/2] set DYNAMIC_GHC_PROGRAMS to NO if platform does not support shared libs

Karel Gardas karel.gardas at centrum.cz
Thu Apr 4 18:29:54 CEST 2013


---
 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




More information about the ghc-devs mailing list