pnoltes commented on issue #571: URL: https://github.com/apache/celix/issues/571#issuecomment-1585618953
If I call correctly the BUILD_WITH_INSTALL_RPATH is needed to ensure `$ORIGIN` works. See snippet: ``` set_target_properties(${BUNDLE_TARGET_NAME} PROPERTIES "BUILD_WITH_INSTALL_RPATH" true) if(APPLE) set_target_properties(${BUNDLE_TARGET_NAME} PROPERTIES INSTALL_RPATH "@loader_path") else() set_target_properties(${BUNDLE_TARGET_NAME} PROPERTIES INSTALL_RPATH "$ORIGIN") endif() ``` And `$ORIGIN` should IMO be the preferred path to load (private) bundle libraries, so that as result a executable using a Celix framework should: a) Link against the required bundle dependency libraries so that during bundle loading the needed libraries can be found or b) Add required bundle dependency libraries as a private lib / file to the bundle using the libraries The usage `Celix::dfi` in remote services is an example of optoin A and the usage of cmzq in pubsub is an example of option B. Maybe it would be good to document this better ? -- 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