summaryrefslogtreecommitdiffhomepage
path: root/file.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2024-06-11 17:15:19 +0200
committerRoland Reichwein <mail@reichwein.it>2024-06-11 17:15:19 +0200
commitd9e360bb95d4fced4974bb716f993c81626417cb (patch)
tree0b4d9665c4b6b2be05fddaa0e80a094222a0aac3 /file.cpp
parent2be709d1013cfc1beafd90b6e1dbb06ba6339580 (diff)
bugfix: external lib linking
Diffstat (limited to 'file.cpp')
-rw-r--r--file.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/file.cpp b/file.cpp
index d4c3f54..6211471 100644
--- a/file.cpp
+++ b/file.cpp
@@ -117,6 +117,11 @@ bool is_static_lib(const std::filesystem::path& p)
return p.extension() == ".a";
}
+bool is_external_lib(const std::filesystem::path& p)
+{
+ return !(is_static_lib(p) || is_dynamic_lib(p) || is_dynamic_lib_link(p));
+}
+
std::filesystem::path simplified_path(const std::filesystem::path& p)
{
if (p.string().substr(0, 2) == "./") {