diff options
Diffstat (limited to 'linker/linker.cpp')
-rw-r--r-- | linker/linker.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linker/linker.cpp b/linker/linker.cpp index 841b9575f..4e899c312 100644 --- a/linker/linker.cpp +++ b/linker/linker.cpp @@ -1318,6 +1318,10 @@ static int open_library(ZipArchiveCache* zip_archive_cache, int fd = TEMP_FAILURE_RETRY(open(name, O_RDONLY | O_CLOEXEC)); if (fd != -1) { *file_offset = 0; + if (!realpath_fd(fd, realpath)) { + PRINT("warning: unable to get realpath for the library \"%s\". Will use given path.", name); + *realpath = name; + } } return fd; } |