How can I make GHC always use some extra gcc or linker option?
If you want to *always* use an extra option then you can edit the package configuration for the ‘rts’ or ‘base’ package since these packages are used by every program that you compile with GHC. You might want to do this if you had installed something that ghc needs but into a non-standard directory, thus requiring special compilation or linking options. All you need to do is to dump out the configuration into a human readable form, edit it and re-register the modified package configuration.