Add -static to the linker command line when -static is passed to GHC.
At some point we might want a way to say that Haskell libraries should
be linked statically but everything else should be linked as normal,
but since we aren't really supporting dynamic Haskell libraries at
this time, we don't need to address that yet.
#endif
++ pkg_extra_ld_opts
++ extra_ld_opts
+ ++ (if static then [ "-static" ] else [])
++ if static && not no_hs_main then
[ "-u", prefixUnderscore "Main_zdmain_closure"]
else []))