diff options
author | Brad King <brad.king@kitware.com> | 2008-04-14 19:02:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-04-14 19:02:34 (GMT) |
commit | b9a5dccc8da342d72c9bd5563c38cfad55a9ad89 (patch) | |
tree | 794ac2bfac46fa2b175472db10244401e931f561 /Source/cmSystemTools.h | |
parent | 3ff5404ccaeefbf4d53efcf86cd3a7d45d8e87e9 (diff) | |
download | CMake-b9a5dccc8da342d72c9bd5563c38cfad55a9ad89.zip CMake-b9a5dccc8da342d72c9bd5563c38cfad55a9ad89.tar.gz CMake-b9a5dccc8da342d72c9bd5563c38cfad55a9ad89.tar.bz2 |
ENH: Added RPATH methods to cmSystemTools
- RemoveRPath to remove the RPATH from a binary
- CheckRPath to check for an existing RPATH in a binary
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index 18c4939..89cf407 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -393,6 +393,14 @@ public: std::string const& newRPath, std::string* emsg = 0); + /** Try to remove the RPATH from an ELF binary. */ + static bool RemoveRPath(std::string const& file, std::string* emsg = 0); + + /** Check whether the RPATH in an ELF binary contains the path + given. */ + static bool CheckRPath(std::string const& file, + std::string const& newRPath); + private: static bool s_ForceUnixPaths; static bool s_RunCommandHideConsole; |