With much help from joerg, if I understand it correctly, it looks like the real problem is that in netbsd, QT5 has: #define Q_DECL_EXPORT /* nothing */ Then, things that need to have visibility default, like qt_plugin_instance, do not. (-save-temps is handy :))