diff --git a/src/plugins/debugger/debuggerruncontrol.h b/src/plugins/debugger/debuggerruncontrol.h
index 216adccaeeaf0e8d640c9bf47d309e0630784365..9aba97e7ae3f64b136fc9b806ee04b5efb0253e0 100644
--- a/src/plugins/debugger/debuggerruncontrol.h
+++ b/src/plugins/debugger/debuggerruncontrol.h
@@ -83,8 +83,8 @@ signals:
 private:
     void handleFinished();
 
-    friend DebuggerRunControl *createDebuggerRunControl(const DebuggerStartParameters &sp,
-                                                        QString *errorMessage);
+    friend DEBUGGER_EXPORT DebuggerRunControl *createDebuggerRunControl(
+            const DebuggerStartParameters &sp, QString *errorMessage);
 
     DebuggerRunControl(ProjectExplorer::RunConfiguration *runConfig,
                        Internal::DebuggerEngine *engine);