summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-04-14 19:02:34 (GMT)
committerBrad King <brad.king@kitware.com>2008-04-14 19:02:34 (GMT)
commitb9a5dccc8da342d72c9bd5563c38cfad55a9ad89 (patch)
tree794ac2bfac46fa2b175472db10244401e931f561 /Source/cmSystemTools.h
parent3ff5404ccaeefbf4d53efcf86cd3a7d45d8e87e9 (diff)
downloadCMake-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.h8
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;