x11-libs/qt has use flags for enabling various SQL drivers for the library. Currently, if enabled, these drivers are always compiled as plugins since the ebuild passes the argument -plugin-sql-<driver> to the configure script when building.
Sometimes compiling them as plugins is not desired (for example to maximize compatibility with other linux distributions). In this case, the drivers can be compiled into libQtSql by providing the argument -qt-sql-<driver> to configure.
This could be implemented by adding a new package specific use flag or changing the default behaviour.
Created attachment 131132 [details, diff]
Patch for qt-4.3.1-r1.ebuild
Attached a patch which adds a new local use flag 'nosqlplugins'. If specified, all enabled sql drivers are compiled into libQtSql instead of plugins. If not specified, the drivers are compiled as plugins like before.
Version no longer in portage