From 68a74edda1a78c6820ac9074008e828de973e576 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Mon, 7 Aug 2017 08:11:56 +0200 Subject: [PATCH] use always compiler flags, which are supported by gcc & clang --- 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 b9ea11d7e..01db9dc49 100644 --- a/arch/x86/loader/CMakeLists.txt +++ b/arch/x86/loader/CMakeLists.txt @@ -21,7 +21,7 @@ target_compile_options(arch_x86_loader target_link_libraries(arch_x86_loader arch_x86_loader_asm - "-T ${CMAKE_CURRENT_LIST_DIR}/link.ld" + "-Wl,-T -Wl,${CMAKE_CURRENT_LIST_DIR}/link.ld" "-z max-page-size=4096" -Wl,--build-id=none # required because CMake links with gcc, not ld -nostdlib -static)