[cmake-commits] alex committed CMakeFindBinUtils.cmake 1.11 1.12

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Jan 14 19:02:33 EST 2008


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv23825

Modified Files:
	CMakeFindBinUtils.cmake 
Log Message:
BUG: according to the binutils mailing list chrpath doesn't work when cross
compiling

Alex


Index: CMakeFindBinUtils.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeFindBinUtils.cmake,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- CMakeFindBinUtils.cmake	2 Jan 2008 21:52:12 -0000	1.11
+++ CMakeFindBinUtils.cmake	15 Jan 2008 00:02:30 -0000	1.12
@@ -76,7 +76,8 @@
 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 @@
   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)



More information about the Cmake-commits mailing list