[Cuis-dev] Cuis on macOS - Dynamic loading of Homebrew libraries
Jon Raiford
raiford at labware.com
Thu Apr 4 07:30:00 PDT 2024
Our group has tiptoed around this problem for a little bit but it would be nice to actually address it. I’m curious what you all think.
If you want to use FFI calls on a Mac to libraries installed via Homebrew (or other ways that don’t use the standard library path, really) then you have to set a library path just before launching Cuis. As I understand it, the environment variable DYLIB_LIBRARY_PATH is used to specify this path, however Apple wipes this at each startup as a security mechanism.
Here is an old discussion of a similar problem: https://forums.developer.apple.com/forums/thread/13161
So the question is, should the Open Smalltalk VM reference the homebrew library paths to make digesting these libraries easier? Should Cuis add something like this to the launch script for Mac?
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/opt/homebrew/lib
Or should this fall to application developers to do it themselves? I don’t think Homebrew folks have any intention of switching to the Apple standard library folders.
Ultimately I think it should be possible to launch a Cuis app from Launchpad and I don’t think it lets you launch from a script, but honestly I’m not very familiar with that.
Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240404/c1d35ac1/attachment.htm>
More information about the Cuis-dev
mailing list