I'm having an issue with a shared library referencing another even though i linked one with the other with linkLibrary.
dlopen(/Users/giann/git/buzz/dist/lib/libos.dylib, 0x0001): Library not loaded: '@rpath/libbuzz.dylib'
Referenced from: '/Users/giann/git/buzz/dist/lib/libos.dylib'
Reason: tried: 'dist/lib/libbuzz.dylib' (no such file), 'dist/lib/libbuzz.dylib' (no such file), '/usr/local/lib/libbuzz.dylib' (no such file), '/usr/lib/libbuzz.dylib' (no such file)
dist/lib is what I used to setOutputDir of the lib. Is there a way to add/modify paths for dlopen to search in? Something link /usr/local/lib/buzz/... at least?
Here the full build.zig: https://github.com/buzz-language/buzz/blob/main/build.zig