From 9b6c531505ff74f119bff6facae35c10801b2c6c Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 31 May 2024 17:04:21 +0200 Subject: Link dynamic lib, test --- file.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'file.h') diff --git a/file.h b/file.h index fbab148..972b580 100644 --- a/file.h +++ b/file.h @@ -19,6 +19,10 @@ std::string dynamic_lib_name(const std::filesystem::path& p); // removes initial "./" std::filesystem::path simplified_path(const std::filesystem::path& p); +// path of lib, i.e. parent +// e.g. libs/libabc.so.1.0.0 -> libs +// e.g. libabc.so -> . +std::filesystem::path lib_path(const std::filesystem::path& p); std::string env_value(const std::string& key); bool is_executable_command(const std::string& file); -- cgit v1.2.3