Currently it seems that there is no way to convince Cabal to build libraries in the dyn_p way. This renders it impossible to build projects which have plugin build dependencies with profiling enabled. The reason for this is that a profiled ghc will attempt to load the plugin built in the profiled way, which does not exist.