From 597ccb13ace9ccf48fab2b6a50d6de522c3e86ae Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Mon, 7 Aug 2017 19:39:22 +0200 Subject: [PATCH] disable builtin functions --- 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 daeb29b1d..f0e23b16e 100644 --- a/arch/x86/loader/CMakeLists.txt +++ b/arch/x86/loader/CMakeLists.txt @@ -17,7 +17,7 @@ target_include_directories(arch_x86_loader target_compile_options(arch_x86_loader PRIVATE -O2 -Wall -m64 -std=gnu99 -ffreestanding -mno-red-zone - -fomit-frame-pointer) + -fomit-frame-pointer -fno-builtin -fnostdlib -nostdinc) include(CheckCCompilerFlag) check_c_compiler_flag(-fstrength-reduce HAS_STRENGTH_REDUCE)