summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2008-01-14 19:02:30 -0500
committerAlexander Neundorf <neundorf@kde.org>2008-01-14 19:02:30 -0500
commitb33e1c5cc36505a9dfbd193142890bea9120bd82 (patch)
tree9833b1b34c5318b782c02ff3298b8b24925dd244 /Modules
parent4bcce925ea8279cd7c8e770c77142878870c3527 (diff)
downloadcmake-b33e1c5cc36505a9dfbd193142890bea9120bd82.tar.gz
BUG: according to the binutils mailing list chrpath doesn't work when cross
compiling Alex
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeFindBinUtils.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/CMakeFindBinUtils.cmake b/Modules/CMakeFindBinUtils.cmake
index 688d5d81fd..851fed9894 100644
--- a/Modules/CMakeFindBinUtils.cmake
+++ b/Modules/CMakeFindBinUtils.cmake
@@ -76,7 +76,8 @@ IF(APPLE)
ENDIF(APPLE)
# if we are on an ELF system, search for chrpath
-IF("${CMAKE_EXECUTABLE_FORMAT}" STREQUAL "ELF")
+# according to
+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)
@@ -84,4 +85,4 @@ IF("${CMAKE_EXECUTABLE_FORMAT}" STREQUAL "ELF")
FIND_PROGRAM(CMAKE_CHRPATH chrpath)
MARK_AS_ADVANCED(CMAKE_CHRPATH)
-ENDIF("${CMAKE_EXECUTABLE_FORMAT}" STREQUAL "ELF")
+ENDIF("${CMAKE_EXECUTABLE_FORMAT}" STREQUAL "ELF" AND NOT CMAKE_CROSSCOMPILING)