From 8464480ceb844307dcec2b05fea3048905eac94b Mon Sep 17 00:00:00 2001 From: Florent Castelli Date: Fri, 3 Feb 2017 23:21:11 +0100 Subject: [PATCH] cmake: Remove -nopie, -no-pie should be used instead --- CMakeLists.txt | 4 ---- 1 file changed, 4 deletions(-) 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()