diff options
Diffstat (limited to 'Modules/CMakeFindBinUtils.cmake')
-rw-r--r-- | Modules/CMakeFindBinUtils.cmake | 13 |
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) |