3eefd9c019
- cmake-fix-pie-binaries.patch: fix the PIE binaries check for newer file versions OBS-URL: https://build.opensuse.org/request/show/287297 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=198
19 lines
666 B
Diff
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()
|