diff options
author | Ian Lynagh <ian@well-typed.com> | 2013-03-19 15:25:17 +0000 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2013-03-19 15:25:17 +0000 |
commit | 3df97a703dc35b42155d75a760798627a1529bd1 (patch) | |
tree | 7ee09fab7f3c989f2837c1c0ccdeba2108ffd6e1 /mk | |
parent | 387c4d1bf720b2c9d67bfaed573ba1c5ba47138e (diff) | |
download | haskell-3df97a703dc35b42155d75a760798627a1529bd1.tar.gz |
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.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/config.mk.in | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in index ef8acf64de..c818a32d6f 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 |