Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

haskell

cabal

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!

like image 674
z_axis Avatar asked Dec 21 '22 14:12

z_axis


1 Answers

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.

like image 196
Mikhail Glushenkov Avatar answered Jan 12 '23 14:01

Mikhail Glushenkov