From 73ed687cf11cb2d4e7f263ef5754039b96b69aaa Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 23 Sep 2019 17:13:24 +0200 Subject: Fix static build Make sure we link in the generator plugins. Fixes: QBS-1491 Change-Id: I8c48a73f972c4089cfc8c097a67e2945837e9ed4 Reviewed-by: Joerg Bornemann --- src/lib/corelib/tools/qbspluginmanager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/corelib/tools/qbspluginmanager.h') diff --git a/src/lib/corelib/tools/qbspluginmanager.h b/src/lib/corelib/tools/qbspluginmanager.h index 9c9dcc9f8..1113c413d 100644 --- a/src/lib/corelib/tools/qbspluginmanager.h +++ b/src/lib/corelib/tools/qbspluginmanager.h @@ -77,7 +77,7 @@ private: #ifdef QBS_STATIC_LIB #define QBS_REGISTER_STATIC_PLUGIN(exportmacro, name, load, unload) \ - static auto qbs_static_plugin_register##name = [] { \ + extern "C" bool qbs_static_plugin_register_##name = [] { \ qbs::Internal::QbsPluginManager::instance()->registerStaticPlugin(load, unload); \ return true; \ }(); -- cgit v1.2.3