I've set the search path of libcrpyto inside my dylib file to lookup for libcrypto.1.1.dylib in the following path :
otool -L mylib.dylib
-->
...
@rpath/libcrypto.1.1.dylib
...
However, when I deploy the target into a certain machine in which I've once have built libcrypto, than the search path is being automatically replaced from rpath to the location of my previous build target.
otool -L mylib.dylib
-->
...
/Users/me/Developer/staging/fakeroot/lib/libcrypto.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)
...
The file remains unchanged of course (check it by matching md5 on file content)
I've looked if there's any environment variable that might replace @rpath to /Users/me/Developer/staging/fakeroot/lib/
but haven't found any variable that include the once used path.
Perhaps it's something that defined inside the file ? but what is the reason I get this path only in this specific machine ?