summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorKarel Gardas <karel.gardas@centrum.cz>2013-05-24 23:04:56 +0200
committerIan Lynagh <ian@well-typed.com>2013-05-30 23:07:00 +0100
commit192a8f9f557e2fe04ecd5309f7de4779d59b56f1 (patch)
treeae497fa705eb0ade94264ad22946cb10cb092062 /mk
parentd0ecba6d98c5fae1df8b63632557a44a09c559f8 (diff)
downloadhaskell-192a8f9f557e2fe04ecd5309f7de4779d59b56f1.tar.gz
set DYNAMIC_GHC_PROGRAMS to NO if platform does not support shared libs
Diffstat (limited to 'mk')
-rw-r--r--mk/config.mk.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 5ef1f5cbad..0429796600 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