<div dir="ltr">Some times when I play around with GHC I'd like to turn off dynamic linking to make GHC compile faster. I'm not sure what the right way to do this in <a href="http://build.mk">build.mk</a>. It's made confusing by the conditional statements in that file:<div><br></div><div><div>    GhcLibWays = $(if $(filter $(DYNAMIC_GHC_PROGRAMS),YES),v dyn,v)</div></div><div><br></div><div>This line make me worry that if I don't put</div><div><br></div><div>    DYNAMIC_GHC_PROGRAMS = NO<br></div><div><br></div><div>in the right place in <a href="http://build.mk">build.mk</a> it wont "take".</div><div><br></div><div>There's also this one:</div><div><br></div><div><div>    ifeq "$(PlatformSupportsSharedLibs)" "YES"</div><div>    GhcLibWays += dyn</div><div>    endif</div></div><div><br></div><div>Seeing this makes me wonder if</div><div><br></div><div>    DYNAMIC_GHC_PROGRAMS = NO</div><div><div>    DYNAMIC_BY_DEFAULT   = NO</div></div><div><br></div><div>is enough or if the build system still sniffs out the fact that my platform supports dynamic linking.</div><div><br></div><div>Could someone please give an authoritative answer to how to turn off dynamic linking?</div><div><br></div><div>-- Johan</div><div><br></div><div><br></div></div>