bootstrap: configure to build as a purely static executable
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user