[commit: ghc] master: Be more optimistic about which platforms support shared libraries (3df97a7)

Ian Lynagh igloo at earth.li
Tue Mar 19 17:27:41 CET 2013


Repository : http://darcs.haskell.org/ghc.git/

On branch  : master

https://github.com/ghc/ghc/commit/3df97a703dc35b42155d75a760798627a1529bd1

>---------------------------------------------------------------

commit 3df97a703dc35b42155d75a760798627a1529bd1
Author: Ian Lynagh <ian at well-typed.com>
Date:   Tue Mar 19 15:25:17 2013 +0000

    Be more optimistic about which platforms support shared libraries
    
    Pretty much everything does now, so list those that don't instead
    instead of listing those that do.

>---------------------------------------------------------------

 mk/config.mk.in | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/mk/config.mk.in b/mk/config.mk.in
index ef8acf6..c818a32 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -88,21 +88,15 @@ GhcDynamic=NO
 # GhcProfiled=YES means compile a profiled stage-2 compiler
 GhcProfiled=NO
 
-# Do we support shared libs?
-SharedLibsPlatformList =                        \
-    i386-unknown-linux   x86_64-unknown-linux   \
-    i386-unknown-freebsd x86_64-unknown-freebsd \
-    i386-unknown-openbsd x86_64-unknown-openbsd \
-    i386-unknown-netbsd  x86_64-unknown-netbsd  \
-    i386-unknown-mingw32 x86_64-unknown-mingw32 \
-    i386-apple-darwin    x86_64-apple-darwin    powerpc-apple-darwin
-
-ifeq "$(SOLARIS_BROKEN_SHLD)" "NO"
-SharedLibsPlatformList += i386-unknown-solaris2
+# Soem platforms don't support shared libraries
+NoSharedLibsPlatformList =
+
+ifeq "$(SOLARIS_BROKEN_SHLD)" "YES"
+NoSharedLibsPlatformList += i386-unknown-solaris2
 endif
 
 PlatformSupportsSharedLibs = $(if $(filter $(TARGETPLATFORM),\
-	$(SharedLibsPlatformList)),YES,NO)
+    $(NoSharedLibsPlatformList)),NO,YES)
 
 # DYNAMIC_BY_DEFAULT says whether this compiler will default to
 # building dynamic executables, i.e. -dynamic is on.  We do this for





More information about the ghc-commits mailing list