Fix -dynamic-too on Windows
Fix -dynamic-too on Windows

If we're building the dynamic way too, then hasCafRefs needs to check
whether the dynamic way would use a dynamic name.

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