Fix dependency generation when GhcLibWays = dyn p
Fix dependency generation when GhcLibWays = dyn p

This is a kludge. A proper fix probably involves improving the "ghc -M"
flags to handle this sort of case better.

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