SHA256
3
0
forked from pool/cmake
cmake/cmake-fix-pie-binaries.patch
2015-02-23 10:21:21 +00:00

19 lines
666 B
Diff

Index: cmake-3.2.0-rc1/Modules/GetPrerequisites.cmake
===================================================================
--- cmake-3.2.0-rc1.orig/Modules/GetPrerequisites.cmake
+++ cmake-3.2.0-rc1/Modules/GetPrerequisites.cmake
@@ -260,6 +260,13 @@ function(is_file_executable file result_
return()
endif()
+ # newer file version does not use (used shared libraries)
+ # but uses interpreter
+ if("${file_ov}" MATCHES "shared object.*interpreter")
+ set(${result_var} 1 PARENT_SCOPE)
+ return()
+ endif()
+
else()
message(STATUS "warning: No 'file' command, skipping execute_process...")
endif()