Merge pull request #3734 from Sonicadvance1/no_x86_pie

Make sure x86_64 isn't compiled with PIE.
This commit is contained in:
Pierre Bourdon 2016-05-29 17:32:20 +02:00
commit 2a79ac0d28
1 changed files with 1 additions and 0 deletions

View File

@ -167,6 +167,7 @@ if(NOT ENABLE_GENERIC)
set(_M_X86 1) set(_M_X86 1)
set(_M_X86_64 1) set(_M_X86_64 1)
add_definitions(-D_M_X86=1 -D_M_X86_64=1 -msse2) add_definitions(-D_M_X86=1 -D_M_X86_64=1 -msse2)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fno-pie")
else() else()
message(FATAL_ERROR "x86_32 is an unsupported platform. Enable generic build if you really want a JIT-less binary.") message(FATAL_ERROR "x86_32 is an unsupported platform. Enable generic build if you really want a JIT-less binary.")
endif() endif()