summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeFindBinUtils.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-03-01 17:51:07 (GMT)
committerBrad King <brad.king@kitware.com>2008-03-01 17:51:07 (GMT)
commit34c76d4304064d7d0e28ceaeee8ba4048497215a (patch)
tree1fe059dba6b66836c39b0e2b2c0d622a78b5c981 /Modules/CMakeFindBinUtils.cmake
parent61178a0682a024e03e6fe41897b40bb096611f7a (diff)
downloadCMake-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 'Modules/CMakeFindBinUtils.cmake')
-rw-r--r--Modules/CMakeFindBinUtils.cmake13
1 files changed, 0 insertions, 13 deletions
diff --git a/Modules/CMakeFindBinUtils.cmake b/Modules/CMakeFindBinUtils.cmake
index 60d7dae..9d76e75 100644
--- a/Modules/CMakeFindBinUtils.cmake
+++ b/Modules/CMakeFindBinUtils.cmake
@@ -74,16 +74,3 @@ IF(APPLE)
MARK_AS_ADVANCED(CMAKE_INSTALL_NAME_TOOL)
ENDIF(APPLE)
-
-# if we are on an ELF system, search for chrpath
-# according to the binutils mailing list chrpath has problems when cross compiling
-# i.e. if the target has different endianness than the host
-IF("${CMAKE_EXECUTABLE_FORMAT}" STREQUAL "ELF" AND NOT CMAKE_CROSSCOMPILING)
- # on ELF platforms there might be chrpath, which works similar to install_name_tool
- OPTION(CMAKE_USE_CHRPATH "Enable this to use chrpath if available" OFF)
-
- FIND_PROGRAM(CMAKE_CHRPATH chrpath PATHS ${_CMAKE_TOOLCHAIN_LOCATION} NO_DEFAULT_PATH)
- FIND_PROGRAM(CMAKE_CHRPATH chrpath)
-
- MARK_AS_ADVANCED(CMAKE_CHRPATH CMAKE_USE_CHRPATH)
-ENDIF("${CMAKE_EXECUTABLE_FORMAT}" STREQUAL "ELF" AND NOT CMAKE_CROSSCOMPILING)