1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

add flag to be sure that the linker creates a static binary

This commit is contained in:
Stefan Lankes 2017-07-17 16:35:09 +02:00 committed by Stefan Lankes
parent eb74975435
commit 1b182b089a

View file

@ -24,7 +24,7 @@ target_link_libraries(arch_x86_loader
"-T ${CMAKE_CURRENT_LIST_DIR}/link.ld"
"-z max-page-size=4096"
-Wl,--build-id=none # required because CMake links with gcc, not ld
-nostdlib)
-nostdlib -static)
# tools/proxy looks for `ldhermit.elf`
set_target_properties(arch_x86_loader PROPERTIES