diff --git a/CMakeLists.txt b/CMakeLists.txt index cd392eb84d..4341fc004c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -241,10 +241,6 @@ else() if(NO_PIE_UPSTREAM) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie") endif() - check_c_compiler_flag("-nopie" NO_PIE_PATCHED) - if(NO_PIE_PATCHED) - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -nopie") - endif() endif() endif()