From d9e360bb95d4fced4974bb716f993c81626417cb Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Tue, 11 Jun 2024 17:15:19 +0200 Subject: bugfix: external lib linking --- file.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'file.cpp') 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) == "./") { -- cgit v1.2.3