summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 7d32979..9076a6e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -88,7 +88,11 @@ fi
AX_APPEND_FLAG([-DTFM_TIMING_RESISTANT])
AX_APPEND_FLAG([-DECC_TIMING_RESISTANT])
-AX_CHECK_COMPILE_FLAG([-Os], [AX_APPEND_FLAG([-Os])])
+for flag in -Os -s -fno-unwind-tables -fno-asynchronous-unwind-tables \
+ -ffunction-sections -fdata-sections -Wl,--gc-sections \
+ -Wl,-z,now -Wl,--hash-style=sysv -Wl,--build-id=none; do
+ AX_CHECK_COMPILE_FLAG([${flag}], [AX_APPEND_FLAG([${flag}])])
+done
PKG_PROG_PKG_CONFIG()
PKG_CHECK_MODULES([WOLFSSL], [wolfssl])