From 17f410e647e4d9e262788edf2b54c10b4dea9097 Mon Sep 17 00:00:00 2001 From: Jiuzhu Dong Date: Thu, 11 Nov 2021 13:47:08 +0800 Subject: [PATCH] arch/sim: add toolchain library libm Signed-off-by: Jiuzhu Dong --- arch/sim/src/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/sim/src/Makefile b/arch/sim/src/Makefile index 74bbe50f41..8cb3d5a32c 100644 --- a/arch/sim/src/Makefile +++ b/arch/sim/src/Makefile @@ -108,6 +108,10 @@ else STDLIBS += -lrt endif +ifneq ($(CONFIG_LIBM),y) + STDLIBS += -lm +endif + ifeq ($(CONFIG_STACK_COLORATION),y) CSRCS += sim_checkstack.c endif