CONFIG -= plugin if shared_app.pri links to it.

Index: src/grid/grid.pro
--- src/grid/grid.pro.orig
+++ src/grid/grid.pro
@@ -11,7 +11,7 @@ r_static_libs {
     CONFIG += staticlib
 }
 else {
-    CONFIG += plugin
+    #CONFIG += plugin
 }
 TARGET = $${RLIBNAME}grid
 LIBS += -l$${RLIBNAME}core
