<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Thanks for your reply.</div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">There's something in the Fedora packaging guidelines about not packaging static libraries.</div></div></blockquote><div>There is...</div><div>There is also something about it being ok for Haskell packages</div><div>in the Haskell Packaging Guidelines we made. :)</div><div><br></div><div>Current ghc stable releases only support Linux shared libs on ia32 arch's.</div><div>ie all Haskell executables on other archs are statically linked to Haskell libs anyway.</div><div>I believe ocaml also links its executables statically to ocaml libs.</div><div><br></div><div>I don't think we can drop Haskell static libraries any time soon,</div><div>but for ghc-7.8 (Fedora 21) I am thinking to subpackage them</div><div>since ghc-pkg no longer screams about missing static libs.</div><div>(ghc-7.8 uses dynmically linking internally by default though</div><div>which somewhat complicates its use of non-exported libs.)</div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"> &nbsp;I don't know how well it would work to link with Haskell libraries statically and others dynamically -- I'm not even sure how to tell ghc to do that.</div></div></blockquote><div>It works just fine - it is what ghc does by default and has been doing forever. :)</div><div>To link dynamically you have to give the -dynamic option to ghc.</div><div><br></div><div>As I wrote, afaik other distros do not distribute dynamically linked Hasklell executables.</div><div><br></div><div>Anyway my question was more about&nbsp;<span style="font-size: 12pt;">providing both for some packages in an optimal way.</span></div><div><br></div><div>Jens</div><div><br></div><div><br></div><div>$ cat &gt; Main.hs</div><div>main = putStrLn "hi"</div><div>$ ghc Main</div><div>:</div><div>$ ldd Main&nbsp;| grep libHS</div><div>$ ghc Main -dynamic</div><div>:</div><div>$&nbsp;ldd Main&nbsp;| grep libHS | wc -l</div><div>4</div><div>$&nbsp;</div><div><br></div></div></body></html>