[release/7.0.2xx-xcode14.3] [runtime] Always look for dynamic libraries relative to the root directory first. Fixes #xamarin/maccore@2668. (#18131)
Fixes https://github.com/xamarin/maccore/issues/2668. Backport of #18121 Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
This commit is contained in:
Родитель
a14b9dbb30
Коммит
b577489cd3
|
@ -2537,6 +2537,9 @@ xamarin_compute_native_dll_search_directories ()
|
|||
|
||||
NSMutableArray<NSString *> *directories = [NSMutableArray array];
|
||||
|
||||
// Always check in the root directory first.
|
||||
[directories addObject: @"/"];
|
||||
|
||||
// Native libraries might be in the app bundle
|
||||
[directories addObject: [NSString stringWithUTF8String: bundle_path]];
|
||||
// They won't be in the runtimeidentifier-specific directory (because they get lipo'ed into a fat file instead)
|
||||
|
|
Загрузка…
Ссылка в новой задаче