<div dir="ltr">I think that results in libs being built the dyn way as well, which probably doesn't hurt but takes quite a bit of time.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 30, 2014 at 4:07 PM, John Lato <span dir="ltr"><<a href="mailto:jwlato@gmail.com" target="_blank">jwlato@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I don't have an authoritative answer, but in the past I set DYNAMIC_GHC_PROGRAMS and DYNAMIC_BY_DEFAULT as Johan originally suggested and didn't have any issues with the resulting build.<br><br><div class="gmail_quote"><div><div class="h5">On Tue Dec 30 2014 at 9:00:07 AM Johan Tibell <<a href="mailto:johan.tibell@gmail.com" target="_blank">johan.tibell@gmail.com</a>> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Not a good answer, I just set<div><br></div><div><span style="font-size:13px">    GhcLibWays = v</span><br></div></div><div dir="ltr"><div><div style="font-size:13px">    DYNAMIC_GHC_PROGRAMS = NO</div><div style="font-size:13px">    DYNAMIC_BY_DEFAULT   = NO</div></div><div><span style="font-size:13px"><br></span></div></div><div dir="ltr"><div><span style="font-size:13px">at the bottom of the file. This feels a bit hacky because we're overriding </span><span style="font-size:13px">GhcLibWays (e.g. we could be dropping the prof way by accident). I think it should be possible to state our desire (i.e. I don't want dyn) somewhere in the file and have that just work. Trying to manually change things like GhcLibWays is error prone.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 30, 2014 at 11:48 AM, Tuncer Ayaz <span dir="ltr"><<a href="mailto:tuncer.ayaz@gmail.com" target="_blank">tuncer.ayaz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>On Thu, Dec 18, 2014 at 9:52 AM, Johan Tibell <<a href="mailto:johan.tibell@gmail.com" target="_blank">johan.tibell@gmail.com</a>> wrote:<br>
> Some times when I play around with GHC I'd like to turn off dynamic<br>
> linking to make GHC compile faster. I'm not sure what the right way<br>
> to do this in <a href="http://build.mk" target="_blank">build.mk</a>. It's made confusing by the conditional<br>
> statements in that file:<br>
><br>
>     GhcLibWays = $(if $(filter $(DYNAMIC_GHC_PROGRAMS),YES),v dyn,v)<br>
><br>
> This line make me worry that if I don't put<br>
><br>
>     DYNAMIC_GHC_PROGRAMS = NO<br>
><br>
> in the right place in <a href="http://build.mk" target="_blank">build.mk</a> it wont "take".<br>
><br>
> There's also this one:<br>
><br>
>     ifeq "$(PlatformSupportsSharedLibs)" "YES"<br>
>     GhcLibWays += dyn<br>
>     endif<br>
><br>
> Seeing this makes me wonder if<br>
><br>
>     DYNAMIC_GHC_PROGRAMS = NO<br>
>     DYNAMIC_BY_DEFAULT   = NO<br>
><br>
> is enough or if the build system still sniffs out the fact that my<br>
> platform supports dynamic linking.<br>
><br>
> Could someone please give an authoritative answer to how to turn off<br>
> dynamic linking?<br>
<br>
</div></div>Hi Johan,<br>
<br>
did you find the answer?<br>
</blockquote></div><br></div></div></div>
______________________________<u></u>_________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/ghc-devs</a><br>
</blockquote></div>
</blockquote></div><br></div>