void-packages/srcpkgs/CPU-X/patches/fix-no-pie-check.patch
2019-01-13 19:30:04 -02:00

18 lines
655 B
Diff

This shouldn't exist and erroneously fails for us.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dca0029..93b8c79 100644
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -32,10 +32,6 @@ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,noexecstack -
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now")
include(CheckCCompilerFlag)
-check_c_compiler_flag("-no-pie" HAS_NO_PIE)
-if(HAS_NO_PIE)
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie")
-endif(HAS_NO_PIE)
# Options
option(WITH_GTK "Build support for GUI in GTK3+" ON)