diff options
author | Alexander Neundorf <neundorf@kde.org> | 2008-01-15 00:02:30 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2008-01-15 00:02:30 (GMT) |
commit | b33e1c5cc36505a9dfbd193142890bea9120bd82 (patch) | |
tree | 9833b1b34c5318b782c02ff3298b8b24925dd244 /Modules | |
parent | 4bcce925ea8279cd7c8e770c77142878870c3527 (diff) | |
download | CMake-b33e1c5cc36505a9dfbd193142890bea9120bd82.zip CMake-b33e1c5cc36505a9dfbd193142890bea9120bd82.tar.gz CMake-b33e1c5cc36505a9dfbd193142890bea9120bd82.tar.bz2 |
BUG: according to the binutils mailing list chrpath doesn't work when cross
compiling
Alex
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeFindBinUtils.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/CMakeFindBinUtils.cmake b/Modules/CMakeFindBinUtils.cmake index 688d5d8..851fed9 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) |