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):