Fix #8754 in a round-about way.
Fix #8754 in a round-about way.

For some reason on OS X, it seems like -Bsymbolic (which we use for
hooks into the RTS) isn't working, which results in #8754, where stats
don't work because defaultHooks doesn't initialize the stats flag. This
seems to work on Linux static/dynamically, but only on OS X statically.

After talking with Simon, really, the entire hooks thing is a bit
fragile. For now, we just work around it (since GHCi is dynamically
linked) by calling into the defaultHooks ourselves when GHC starts.

Signed-off-by: Austin Seipp <7ea35d812706d9213868749011af1ed4fa2f6aa0@well-typed.com>

ml9951/ghc,jstolarek/ghc,green-haskell/ghc,GaloisInc/halvm-ghc,shlevy/ghc,green-haskell/ghc,green-haskell/ghc,fmthoma/ghc,christiaanb/ghc,mfine/ghc,elieux/ghc,fmthoma/ghc,TomMD/ghc,mfine/ghc,mettekou/ghc,lukexi/ghc,mettekou/ghc,ezyang/ghc,mcschroeder/ghc,urbanslug/ghc,nathyong/microghc-ghc,anton-dessiatov/ghc,olsner/ghc,nushio3/ghc,holzensp/ghc,sdiehl/ghc,spacekitteh/smcghc,gcampax/ghc,sgillespie/ghc,wxwxwwxxx/ghc,nkaretnikov/ghc,vTurbine/ghc,olsner/ghc,mettekou/ghc,shlevy/ghc,siddhanathan/ghc,TomMD/ghc,gridaphobe/ghc,acowley/ghc,forked-upstream-packages-for-ghcjs/ghc,vikraman/ghc,christiaanb/ghc,ryantm/ghc,shlevy/ghc,nkaretnikov/ghc,jstolarek/ghc,ryantm/ghc,vikraman/ghc,ml9951/ghc,sdiehl/ghc,GaloisInc/halvm-ghc,mettekou/ghc,gridaphobe/ghc,fmthoma/ghc,tibbe/ghc,acowley/ghc,anton-dessiatov/ghc,da-x/ghc,oldmanmike/ghc,green-haskell/ghc,vTurbine/ghc,oldmanmike/ghc,sdiehl/ghc,bitemyapp/ghc,siddhanathan/ghc,TomMD/ghc,ryantm/ghc,GaloisInc/halvm-ghc,jstolarek/ghc,urbanslug/ghc,green-haskell/ghc,vTurbine/ghc,gridaphobe/ghc,christiaanb/ghc,GaloisInc/halvm-ghc,elieux/ghc,oldmanmike/ghc,spacekitteh/smcghc,olsner/ghc,frantisekfarka/ghc-dsi,mcschroeder/ghc,wxwxwwxxx/ghc,vikraman/ghc,elieux/ghc,mfine/ghc,urbanslug/ghc,tibbe/ghc,AlexanderPankiv/ghc,snoyberg/ghc,forked-upstream-packages-for-ghcjs/ghc,gcampax/ghc,vikraman/ghc,sgillespie/ghc,fmthoma/ghc,wxwxwwxxx/ghc,mettekou/ghc,jstolarek/ghc,elieux/ghc,acowley/ghc,nushio3/ghc,sdiehl/ghc,AlexanderPankiv/ghc,olsner/ghc,nathyong/microghc-ghc,tjakway/ghcjvm,ml9951/ghc,da-x/ghc,frantisekfarka/ghc-dsi,sgillespie/ghc,urbanslug/ghc,mcschroeder/ghc,TomMD/ghc,lukexi/ghc,bitemyapp/ghc,urbanslug/ghc,GaloisInc/halvm-ghc,nathyong/microghc-ghc,jstolarek/ghc,tjakway/ghcjvm,sgillespie/ghc,vikraman/ghc,oldmanmike/ghc,siddhanathan/ghc,tjakway/ghcjvm,frantisekfarka/ghc-dsi,forked-upstream-packages-for-ghcjs/ghc,mfine/ghc,snoyberg/ghc,siddhanathan/ghc,gridaphobe/ghc,GaloisInc/halvm-ghc,wxwxwwxxx/ghc,urbanslug/ghc,sdiehl/ghc,shlevy/ghc,holzensp/ghc,mettekou/ghc,elieux/ghc,snoyberg/ghc,nkaretnikov/ghc,AlexanderPankiv/ghc,snoyberg/ghc,lukexi/ghc,mcschroeder/ghc,ezyang/ghc,christiaanb/ghc,oldmanmike/ghc,snoyberg/ghc,shlevy/ghc,sgillespie/ghc,gridaphobe/ghc,nushio3/ghc,ghc-android/ghc,nushio3/ghc,spacekitteh/smcghc,mcschroeder/ghc,TomMD/ghc,sgillespie/ghc,tjakway/ghcjvm,gcampax/ghc,tibbe/ghc,sgillespie/ghc,da-x/ghc,mettekou/ghc,ml9951/ghc,gridaphobe/ghc,sdiehl/ghc,frantisekfarka/ghc-dsi,lukexi/ghc,bitemyapp/ghc,anton-dessiatov/ghc,vikraman/ghc,nkaretnikov/ghc,tjakway/ghcjvm,ghc-android/ghc,nathyong/microghc-ghc,urbanslug/ghc,nkaretnikov/ghc,ml9951/ghc,ml9951/ghc,oldmanmike/ghc,vTurbine/ghc,ezyang/ghc,ghc-android/ghc,da-x/ghc,mfine/ghc,mfine/ghc,christiaanb/ghc,GaloisInc/halvm-ghc,TomMD/ghc,ghc-android/ghc,lukexi/ghc,holzensp/ghc,anton-dessiatov/ghc,acowley/ghc,AlexanderPankiv/ghc,forked-upstream-packages-for-ghcjs/ghc,olsner/ghc,wxwxwwxxx/ghc,holzensp/ghc,acowley/ghc,forked-upstream-packages-for-ghcjs/ghc,ghc-android/ghc,ghc-android/ghc,siddhanathan/ghc,ghc-android/ghc,shlevy/ghc,mcschroeder/ghc,siddhanathan/ghc,spacekitteh/smcghc,ml9951/ghc,tibbe/ghc,bitemyapp/ghc,vTurbine/ghc,acowley/ghc,AlexanderPankiv/ghc,forked-upstream-packages-for-ghcjs/ghc,gcampax/ghc,ryantm/ghc,gcampax/ghc,ezyang/ghc,bitemyapp/ghc,snoyberg/ghc,anton-dessiatov/ghc,nkaretnikov/ghc,anton-dessiatov/ghc,ezyang/ghc,nathyong/microghc-ghc,da-x/ghc,oldmanmike/ghc,shlevy/ghc,ryantm/ghc,spacekitteh/smcghc,AlexanderPankiv/ghc,fmthoma/ghc,gridaphobe/ghc,acowley/ghc,tibbe/ghc,nathyong/microghc-ghc,fmthoma/ghc,fmthoma/ghc,gcampax/ghc,tjakway/ghcjvm,christiaanb/ghc,nushio3/ghc,vTurbine/ghc,nathyong/microghc-ghc,wxwxwwxxx/ghc,mcschroeder/ghc,tjakway/ghcjvm,AlexanderPankiv/ghc,nushio3/ghc,frantisekfarka/ghc-dsi,mfine/ghc,ml9951/ghc,da-x/ghc,olsner/ghc,olsner/ghc,christiaanb/ghc,holzensp/ghc,forked-upstream-packages-for-ghcjs/ghc,TomMD/ghc,vTurbine/ghc,nkaretnikov/ghc,elieux/ghc,ezyang/ghc,wxwxwwxxx/ghc,vikraman/ghc,ezyang/ghc,sdiehl/ghc,elieux/ghc,snoyberg/ghc,anton-dessiatov/ghc,nushio3/ghc,gcampax/ghc,da-x/ghc,siddhanathan/ghc