Closed kdewald closed 1 year ago
The quick solution here:
install_name_tool -add_rpath @executable_path ./lib/libsimpleble-c.dylib
(just in case, it is safe to put that for c++ variant library as well)
It works, but might be idiomatically incorrect(very unsure about it).
It will be great to add build option that will allow to execute install_name_tool optionally when building for MacOS. But also it seems like that is an distribution/application responsibility to resolve rpath correctly. I don't know :(
See https://blog.krzyzanowskim.com/2018/12/05/rpath-what/, also there is plenty of stackoverflow topics and other sources over google.
From Discord: