Bug-fix : native library resolving logic accepted/tizen/unified/20231128.175131
authorWoongsuk Cho <ws77.cho@samsung.com>
Tue, 28 Nov 2023 08:28:33 +0000 (17:28 +0900)
committer조웅석/MDE Lab(SR)/삼성전자 <ws77.cho@samsung.com>
Tue, 28 Nov 2023 08:30:42 +0000 (17:30 +0900)
NativeLauncher/tool/multi_target_resolver.cc

index 674ef20..264dc6d 100644 (file)
@@ -137,7 +137,7 @@ int resolvePlatformSpecificFiles(const std::string& rootPath)
                        std::string ridPath = rid.path().string();
                        if (bf::is_directory(ridPath) && strstr(ridPath.c_str(), ARCHITECTURE_IDENTIFIER) != NULL) {
                                for (auto& ridFG : ridFallbackGraph) {
-                                       if (!strcmp(ridPath.c_str(), ridFG.c_str())) {
+                                       if (!strcmp(getFileName(ridPath).c_str(), ridFG.c_str())) {
                                                std::string nativePath = concatPath(ridPath, "native");
                                                if (isDirectory(nativePath)) {
                                                        _INFO("Found best matched rid (%s)", ridFG.c_str());