By default, `ld64` uses `-search_paths_first` which firstly tries to find a dylib, followed by an archive in each directory.