From 7cc325ae8393cc4498e866feb272373d275a785e Mon Sep 17 00:00:00 2001 From: chao an Date: Wed, 22 Feb 2023 17:28:35 +0800 Subject: [PATCH] crypto/mbedtls: disable optimize on sim platform Signed-off-by: chao an --- crypto/mbedtls/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crypto/mbedtls/Makefile b/crypto/mbedtls/Makefile index 1b9245f99..b51f308a5 100644 --- a/crypto/mbedtls/Makefile +++ b/crypto/mbedtls/Makefile @@ -38,6 +38,12 @@ MBEDTLS_UNPACKPROGDIR = $(MBEDTLS_UNPACKNAME)$(DELIM)programs # This lets Mbed TLS better use some of the POSIX features we have CFLAGS += ${DEFINE_PREFIX}__unix__ +library/bignum.c_CFLAGS += -fno-lto + +ifeq ($(CONFIG_ARCH_SIM),y) + CFLAGS += -O0 +endif + CSRCS = $(wildcard $(MBEDTLS_UNPACKLIBDIR)$(DELIM)*.c) $(MBEDTLS_ZIP):