From ab27102c487a0375b4a240508485346e4812df61 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Mon, 17 Jul 2017 16:35:09 +0200 Subject: [PATCH] add flag to be sure that the linker creates a static binary --- arch/x86/loader/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/loader/CMakeLists.txt b/arch/x86/loader/CMakeLists.txt index 0d142c166..b9ea11d7e 100644 --- a/arch/x86/loader/CMakeLists.txt +++ b/arch/x86/loader/CMakeLists.txt @@ -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