bootstrap: configure to build as a purely static executable
This commit is contained in:
@@ -10,7 +10,8 @@ target_link_libraries(bootstrap
|
|||||||
interface::fs)
|
interface::fs)
|
||||||
|
|
||||||
target_compile_options(bootstrap PRIVATE
|
target_compile_options(bootstrap PRIVATE
|
||||||
-fno-stack-protector -nostdlib -ffreestanding)
|
-fno-stack-protector -nostdlib -ffreestanding -fno-PIC)
|
||||||
target_link_options(bootstrap PRIVATE
|
target_link_options(bootstrap PRIVATE
|
||||||
-static -nostdlib -ffreestanding)
|
-static -nostdlib -ffreestanding)
|
||||||
#-T ${CMAKE_CURRENT_SOURCE_DIR}/arch/${TARGET_ARCH}/layout.ld)
|
|
||||||
|
set_target_properties(bootstrap PROPERTIES POSITIION_INDEPENDENT_CODE FALSE)
|
||||||
|
|||||||
Reference in New Issue
Block a user