The packages in extra and community are built with enabled-shared. I find this useful because I then have the option of linking dynamically against them in things I compile myself. I was hoping that option would get enabled in the PKGBUILDs generated by cabal2arch.<div>
<br></div><div>-Leif</div><div><br><div class="gmail_quote">On Wed, Oct 27, 2010 at 12:59 PM, Magnus Therning <span dir="ltr"><<a href="mailto:magnus@therning.org">magnus@therning.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 27/10/10 19:11, Peter Simons wrote:<br>
> Hi guys,<br>
><br>
> I've made some tests with --enable-shared, and the good news is that it<br>
> works great. The bad news is that Cabal doesn't honor the flag when building<br>
> executables. Apparently, this is a known issue:<br>
><br>
> <a href="http://hackage.haskell.org/trac/hackage/ticket/600" target="_blank">http://hackage.haskell.org/trac/hackage/ticket/600</a><br>
><br>
> A work-around that has been suggested is to specify --ghc-opt=-dynamic for<br>
> builds that contain executables, but this solution feels kind of hack'ish.<br>
> On the other hand, shared linkage cuts down binary size a lot, which is<br>
> good.<br>
><br>
> How do you feel about this issue? Any preferences?<br>
<br>
</div>My gut says it's pointless to add --enable-shared if we don't also make sure<br>
executables are made to use shared libs.<br>
<br>
Would it be possible to somehow configure ghc in Arch to do all of this,<br>
both<br>
for libs and the hack for exes, automatically?<br>
<br>
/M<br>
<font color="#888888"><br>
--<br>
Magnus Therning (OpenPGP: 0xAB4DFBA4)<br>
magnus@therning.org Jabber: magnus@therning.org<br>
<a href="http://therning.org/magnus" target="_blank">http://therning.org/magnus</a> <a href="http://identi.ca" target="_blank">identi.ca</a>|twitter: magthe<br>
<br>
</font><br>_______________________________________________<br>
arch-haskell mailing list<br>
<a href="mailto:arch-haskell@haskell.org">arch-haskell@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/arch-haskell" target="_blank">http://www.haskell.org/mailman/listinfo/arch-haskell</a><br>
<br></blockquote></div><br></div>