[Haskell-cafe] Dynamically linked executables

Anakim Border akborder at gmail.com
Mon Mar 28 19:14:16 CEST 2011


Hi,

I'm trying to understand if it's possible to build dynamically linked
executables under Mac OS X (10.6) with GHC 7.

Looking here:

http://hackage.haskell.org/trac/ghc/wiki/SharedLibraries/PlatformSupport

it seems like the support is already present.

Inside ghc-7.1.20110325 sources (the latest development snapshots as I
write), I find the following:

# Do we support shared libs?
PlatformSupportsSharedLibs = $(if $(filter $(TARGETPLATFORM),\
       i386-unknown-linux x86_64-unknown-linux \
       i386-unknown-freebsd x86_64-unknown-freebsd \
       i386-unknown-openbsd x86_64-unknown-openbsd \
       i386-unknown-mingw32 \
       i386-unknown-solaris2 \
       i386-apple-darwin powerpc-apple-darwin),YES,NO)

which seems to indicate the contrary.

GHC bug tracker, finally, doesn't show any open ticket on the matter.

Anyone has more details about this?


Thanks,

AB



More information about the Haskell-Cafe mailing list