Closed aryairani closed 1 month ago
Idea: static linking somehow? but it would have to be done by raco
.
https://docs.racket-lang.org/raco/exe-dist.html <-- this process is supposed to bundle / set-up required DLLs, but it isn't working in the case of libb2.
Maybe could do this
On Windows and Mac OS, native libraries tend to be included with the output of raco distribute. On Unix platforms, native libraries tend not to be included, so system libraries will be used on the host machine. The difference is whether a Racket installation itself includes bundled native libraries or relies on system-installed libraries. Adding a symbolic link in Racket’s "lib" directory to a system-installed library causes that library to be included with a distribution directory created by raco distribute; see also define-runtime-path.
as of https://github.com/unisonweb/homebrew-unison/pull/11, which wasn't possible before due to homebrew sandboxing.
Describe and demonstrate the bug
After using
compile.native main /dest/executable
for amain
that uses blake2, when running the executable, the system may not find libb2. It's looking in/usr/lib
which was reasonable before Apple Silicon; now homebrew puts libb2 in /opt/homebrew/lib.Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context Until we figure out how to have the system look in the right place, you can work around it with
e.g.