From 0401d0efdbe99c4fe12b9d595170dc7513b95892 Mon Sep 17 00:00:00 2001 From: Punk Date: Fri, 8 Mar 2019 00:32:33 +0800 Subject: [PATCH] dont overrides mbedtls's CFLAGS From mbedtls README.md, "Please note that setting CFLAGS overrides its default value of -O2 and...". Restore the -O2 will save ~100k for any of mbedtls's lib files. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a73568fa..753f2e9b 100644 --- a/README.md +++ b/README.md @@ -284,7 +284,7 @@ export MBEDTLS_VER=2.6.0 wget https://tls.mbed.org/download/mbedtls-$MBEDTLS_VER-gpl.tgz tar xvf mbedtls-$MBEDTLS_VER-gpl.tgz pushd mbedtls-$MBEDTLS_VER -make SHARED=1 CFLAGS=-fPIC +make SHARED=1 CFLAGS="-O2 -fPIC" sudo make DESTDIR=/usr install popd sudo ldconfig