mirror of
https://github.com/minetest/minetest.git
synced 2024-12-25 15:42:24 +01:00
This commit is contained in:
parent
69c70dd319
commit
53dca4f95f
@ -758,9 +758,18 @@ else()
|
|||||||
check_c_source_compiles("#ifndef __aarch64__\n#error\n#endif\nint main(){}" IS_AARCH64)
|
check_c_source_compiles("#ifndef __aarch64__\n#error\n#endif\nint main(){}" IS_AARCH64)
|
||||||
if(IS_AARCH64)
|
if(IS_AARCH64)
|
||||||
# Move text segment below LuaJIT's 47-bit limit (see issue #9367)
|
# Move text segment below LuaJIT's 47-bit limit (see issue #9367)
|
||||||
|
if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||||
|
# FreeBSD uses lld, and lld does not support -Ttext-segment, suggesting
|
||||||
|
# --image-base instead. Not sure if it's equivalent change for the purpose
|
||||||
|
# but at least if fixes build on FreeBSD/aarch64
|
||||||
|
# XXX: the condition should also be changed to check for lld regardless of
|
||||||
|
# os, bit CMake doesn't have anything like CMAKE_LINKER_IS_LLD yet
|
||||||
|
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--image-base=0x200000000")
|
||||||
|
else()
|
||||||
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-Ttext-segment=0x200000000")
|
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-Ttext-segment=0x200000000")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if(MINGW)
|
if(MINGW)
|
||||||
set(OTHER_FLAGS "${OTHER_FLAGS} -mthreads -fexceptions")
|
set(OTHER_FLAGS "${OTHER_FLAGS} -mthreads -fexceptions")
|
||||||
|
Loading…
Reference in New Issue
Block a user