Make ghc -dynamic imply -fPIC for C code As is already the case for ghc -fPIC. This is needed because ghc -dynamic means to generate code that is capable of being linked to Haskell shared libs and for C code the equivalent is -fPIC. Normally C code does not need -fPIC merely to link to shared libs however Haskell shared libs do not follow common conventions. In particular the static data cannot be referenced statically because it cannot be copied by the static linker. The linker cannot copy them because we do not specify a .size for the _closure entries (in the .data section) though in principle we could.
Make ghc -dynamic imply -fPIC for C code
As is already the case for ghc -fPIC. This is needed because ghc -dynamic
means to generate code that is capable of being linked to Haskell shared
libs and for C code the equivalent is -fPIC. Normally C code does not need
-fPIC merely to link to shared libs however Haskell shared libs do not
follow common conventions. In particular the static data cannot be
referenced statically because it cannot be copied by the static linker.
The linker cannot copy them because we do not specify a .size for the
_closure entries (in the .data section) though in principle we could.

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