z_axis
z_axis

Reputation: 8460

What does "shared" mean in ~/.cabal/config?

I guess that "shared" will make cabal install faster, right ? The default value of shared is False. Should we use True or False for shared ?

thanks!

Upvotes: 4

Views: 560

Answers (1)

Mikhail Glushenkov
Mikhail Glushenkov

Reputation: 15078

It means "also build dynamically-linked (aka shared) versions of libraries that are installed with cabal install".

$ cabal help install | grep shared
    --enable-shared                Enable Shared library
    --disable-shared               Disable Shared library

By default, only statically-linked versions are built. So it won't make cabal install libfoo faster - on the contrary, building libfoo will take more time.

Upvotes: 11

Related Questions