You also need to enable executable-dynamic.<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 29, 2012 at 7:13 AM, Magicloud Magiclouds <span dir="ltr">&lt;<a href="mailto:magicloud.magiclouds@gmail.com" target="_blank">magicloud.magiclouds@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sorry, I left the profiling option on, which seems to suppress the<br>
dynamic options.<br>
<br>
On Mon, Oct 29, 2012 at 1:29 PM, Magicloud Magiclouds<br>
&lt;<a href="mailto:magicloud.magiclouds@gmail.com">magicloud.magiclouds@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt; &nbsp; I set &quot;shared: True&quot; in ~/.cabal/config, and using ghc 7.6.1. Then<br>
&gt; clear user space hackages and reinstall them.<br>
&gt; &nbsp; First of all, I think comparing to static link, dynamic linked<br>
&gt; executables file should be smaller. And the libraries (.so) could<br>
&gt; benefits from caching to save memory usage.<br>
&gt;<br>
&gt; &nbsp; Well, I installed cabal-install and alex. I got this:<br>
&gt; cabal 9.9M -&gt; 24M<br>
&gt; alex 2.7M -&gt; 5.1M<br>
&gt; &nbsp; Is this correct?<br>
<span class="HOEnZb"><font color="#888888">&gt; --<br>
&gt; 竹密岂妨流水过<br>
&gt; 山高哪阻野云飞<br>
&gt;<br>
&gt; And for G+, please use magiclouds#<a href="http://gmail.com" target="_blank">gmail.com</a>.<br>
<br>
<br>
<br>
--<br>
竹密岂妨流水过<br>
山高哪阻野云飞<br>
<br>
And for G+, please use magiclouds#<a href="http://gmail.com" target="_blank">gmail.com</a>.<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</font></span></blockquote></div><br></div>