diff options
author | Brad King <brad.king@kitware.com> | 2008-03-01 17:51:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-03-01 17:51:07 (GMT) |
commit | 34c76d4304064d7d0e28ceaeee8ba4048497215a (patch) | |
tree | 1fe059dba6b66836c39b0e2b2c0d622a78b5c981 /Source/cmSystemTools.h | |
parent | 61178a0682a024e03e6fe41897b40bb096611f7a (diff) | |
download | CMake-34c76d4304064d7d0e28ceaeee8ba4048497215a.zip CMake-34c76d4304064d7d0e28ceaeee8ba4048497215a.tar.gz CMake-34c76d4304064d7d0e28ceaeee8ba4048497215a.tar.bz2 |
ENH: Use builtin chrpath instead of relinking ELF targets
- Add cmSystemTools::ChangeRPath method
- Add undocumented file(CHRPATH) command
- When installing use file(CHRPATH) to change the rpath
instead of relinking
- Remove CMAKE_CHRPATH lookup from CMakeFindBinUtils
- Remove CMAKE_USE_CHRPATH option since this should
always work
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index e03c24c..42282d3 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -381,6 +381,11 @@ public: static bool GuessLibrarySOName(std::string const& fullPath, std::string& soname); + /** Try to set the RPATH in an ELF binary. */ + static bool ChangeRPath(std::string const& file, + std::string const& newRPath, + std::string* emsg = 0); + private: static bool s_ForceUnixPaths; static bool s_RunCommandHideConsole; |