mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: Build Prekernel with -fno-threadsafe-statics
Else, function-local statics create calls to __cxa_guard_acquire / __cxa_guard_release on aarch64, which we don't (yet?) implement. Since Prekernel is single-threaded, just sidestep that for now.
This commit is contained in:
parent
9a1181f748
commit
22b2ca7b8e
Notes:
sideshowbarker
2024-07-18 04:06:33 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/22b2ca7b8ec Pull-request: https://github.com/SerenityOS/serenity/pull/9992 Reviewed-by: https://github.com/linusg
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ endif()
|
|||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static")
|
||||
|
||||
add_executable(${PREKERNEL_TARGET} ${SOURCES})
|
||||
target_compile_options(${PREKERNEL_TARGET} PRIVATE -no-pie -fno-pic)
|
||||
target_compile_options(${PREKERNEL_TARGET} PRIVATE -no-pie -fno-pic -fno-threadsafe-statics)
|
||||
|
||||
target_link_options(${PREKERNEL_TARGET} PRIVATE LINKER:-T ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld -nostdlib LINKER:--no-pie)
|
||||
set_target_properties(${PREKERNEL_TARGET} PROPERTIES LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld)
|
||||
|
|
Loading…
Reference in a new issue