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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

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