bootstrap: configure to build as a purely static executable

This commit is contained in:
2026-03-21 10:55:49 +00:00
parent cc15bb54f3
commit 24fc8ecb97

View File

@@ -10,7 +10,8 @@ target_link_libraries(bootstrap
interface::fs)
target_compile_options(bootstrap PRIVATE
-fno-stack-protector -nostdlib -ffreestanding)
-fno-stack-protector -nostdlib -ffreestanding -fno-PIC)
target_link_options(bootstrap PRIVATE
-static -nostdlib -ffreestanding)
#-T ${CMAKE_CURRENT_SOURCE_DIR}/arch/${TARGET_ARCH}/layout.ld)
-static -nostdlib -ffreestanding)
set_target_properties(bootstrap PROPERTIES POSITIION_INDEPENDENT_CODE FALSE)