[PATCH] 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] set DYNAMIC_GHC_PROGRAMS to NO if platform does not support shared libs

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

diff --git a/mk/config.mk.in b/mk/config.mk.in
index 5ef1f5c..0429796 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -138,6 +138,8 @@ else ifeq "$(TargetOS_CPP)" "freebsd"
 # FreeBSD cannot do proper resolution for $ORIGIN (due to a bug in
 # rtld(1)), so disable it by default (see #7819).
 DYNAMIC_GHC_PROGRAMS = NO
+else ifeq "$(PlatformSupportsSharedLibs)" "NO"
+DYNAMIC_GHC_PROGRAMS = NO
 else
 DYNAMIC_GHC_PROGRAMS = YES
 endif
--
1.7.3.2