<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 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><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 class="HOEnZb"><div class="h5">On Thu, Dec 18, 2014 at 9:52 AM, Johan Tibell <<a href="mailto:johan.tibell@gmail.com">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>