<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 25 October 2014 05:10, Sergei Trofimovich <span dir="ltr"><<a href="mailto:slyich@gmail.com" target="_blank">slyich@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I believe the proper way to pass them is via<br>
    --ghc-option="-optc$EACH_CFLAG -optl$EACH_LDFLAG -opta$EACH_ASFLAG"<br>
as Cabal uses ghc to compile .c/.cpp files.<br></blockquote><div><br></div><div>Thanks Sergei that helped a lot. :)</div><div><br></div><div>I can now get proper debuginfo generated for libraries,</div><div>but somehow not for executables: but that looks</div><div>like some ghc behaviour problem perhaps.</div><div><br></div><div><a href="http://pkgs.fedoraproject.org/cgit/ghc-rpm-macros.git/tree/macros.ghc?id=e5c8c16492266bfe8ef02ec58cac0f745533e165#n26">http://pkgs.fedoraproject.org/cgit/ghc-rpm-macros.git/tree/macros.ghc?id=e5c8c16492266bfe8ef02ec58cac0f745533e165#n26</a><br></div></div><br></div></div>