mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-20 15:40:30 +01:00
Fix linkage if PIE is default
This commit is contained in:
parent
7e01a65117
commit
92180ffcb8
|
|
@ -45,6 +45,8 @@ function(add_precompiled_vulkan_spirv target)
|
|||
endfunction()
|
||||
|
||||
function(target_base_address target address)
|
||||
set_target_properties(${target} PROPERTIES POSITION_INDEPENDENT_CODE off)
|
||||
|
||||
if(CMAKE_CXX_COMPILER_LINKER_ID MATCHES "^(LLD|MOLD)$")
|
||||
target_link_options(${target} PUBLIC "LINKER:--image-base=${address}")
|
||||
else()
|
||||
|
|
|
|||
Loading…
Reference in a new issue