What does “shared” mean in ~/.cabal/config?

ⅰ亾dé卋堺 提交于 2019-12-10 17:19:28

问题


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!


回答1:


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.



来源:https://stackoverflow.com/questions/13188387/what-does-shared-mean-in-cabal-config

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!