From 8b01158c958328d9fa32e1f94beca677ca301f09 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Mon, 14 Mar 2016 13:26:00 -0500 Subject: [PATCH] Make sure x86_64 isn't compiled with PIE. Our x86_64 recompilers don't support PIE and fail amazingly if enabled. Disable it so package maintainers(!) or other randoms don't accidently enable it when we don't support it. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 92f112d67c..7fb4165e22 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -166,6 +166,7 @@ if(NOT ENABLE_GENERIC) set(_M_X86 1) set(_M_X86_64 1) add_definitions(-D_M_X86=1 -D_M_X86_64=1 -msse2) + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fno-pie") else() message(FATAL_ERROR "x86_32 is an unsupported platform. Enable generic build if you really want a JIT-less binary.") endif()