aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2024-09-10 21:59:21 +0100
committerGitHub <noreply@github.com>2024-09-10 21:59:21 +0100
commitb442ea86012fb4d07c79bcc6debbd79bd047b63e (patch)
tree31b4df188f579fad73746ea0e27236e9541be7e9 /src/parser.cpp
parent309ea50a7cb93a3e84098b9312b7ef94feeff8ee (diff)
parent6778598bc648a4c605fb1b488185fad59668185a (diff)
Merge pull request #4206 from laytan/improve-linking-shared-libraries
Improve linking shared libraries
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index e3143dd33..88147d465 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -5932,20 +5932,6 @@ gb_internal bool determine_path_from_string(BlockingMutex *file_mutex, Ast *node
do_error(node, "Unknown library collection: '%.*s'", LIT(collection_name));
return false;
}
- } else {
-#if !defined(GB_SYSTEM_WINDOWS)
- // @NOTE(vassvik): foreign imports of shared libraries that are not in the system collection on
- // linux/mac have to be local to the executable for consistency with shared libraries.
- // Unix does not have a concept of "import library" for shared/dynamic libraries,
- // so we need to pass the relative path to the linker, and add the current
- // working directory of the exe to the library search paths.
- // Static libraries can be linked directly with the full pathname
- //
- if (node->kind == Ast_ForeignImportDecl && (string_ends_with(file_str, str_lit(".so")) || string_contains_string(file_str, str_lit(".so.")))) {
- *path = file_str;
- return true;
- }
-#endif
}
if (is_package_name_reserved(file_str)) {