PengZheng commented on PR #657:
URL: https://github.com/apache/celix/pull/657#issuecomment-1734734401

   > An alternative to consider is to provided init/deinit libs that use the 
__attribute__((constructor)) / __attribute__((destructor)) to initialize / 
deinitialize libraries. These library then needs to be linked against the 
generated launcher.
   
   > But IMO it is clearer to do this in the launcher. Maybe some effort can be 
made to make it possible that a custom launcher can easily use the PROPERTIES 
provided in the add_celix_container (as is currently done in the generated 
main.c/main.cc file).
   
   Indeed, manual initialization in launcher is less than ideal.
   The biggest trouble is these initialization functions have options, e.g. 
`mg_init_library`. Different bundles may have different requirements, and thus 
set different options.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@celix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to