Add plugin constructor registration for all libraries that provide plugins
[strongswan.git] / src / libstrongswan / library.c
index 1d1e1f0..7944b93 100644 (file)
@@ -94,6 +94,13 @@ void library_add_namespace(char *ns)
 }
 
 /**
+ * Register plugins if built statically
+ */
+#ifdef STATIC_PLUGIN_CONSTRUCTORS
+#include "plugin_constructors.c"
+#endif
+
+/**
  * library instance
  */
 library_t *lib = NULL;