<div dir="ltr">Hello,<div><br></div><div>I'd like to compile ghc-7.8.2 with DynamicGhcPrograms disabled (on 64-bit linux).  I downloaded the source tarball, added</div><div><br></div><div>DYNAMIC_GHC_PROGRAMS = NO</div>
<div><br></div><div>to mk/<a href="http://build.mk">build.mk</a>, and did ./configure && ./make.</div><div><br></div><div>ghc builds and everything seems to work (cabal installed a bunch of packages, ghci seems to work), however whenever I try to run Setup.hs dynamically (either 'runghc Setup.hs configure' or loading it with ghci and executing 'main') it dumps core.  Compiling Setup.hs works, and nothing else has caused ghci to crash either (this email is a literate haskell file equivalent to Setup.hs).</div>
<div><br></div><div>Building with DYNAMIC_GHC_PROGRAMS = YES works properly.</div><div><br></div><div>With that in mind, I have a few questions:</div><div><br></div><div> How should I compile a non-dynamic ghc?</div><div>
 Is this a bug in ghc?</div><div><br></div><div>Thanks,</div><div>John L.</div><div><br></div><div>* Setup.hs</div><div>> import Distribution.Simple</div><div>> main = defaultMain</div></div>