diff --git a/CMakeLists.txt b/CMakeLists.txt index 12bb09060a..35c3e42786 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -167,6 +167,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()