From 86efbae708f4d22af1e45488e732dccd990f729a Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Tue, 25 Oct 2022 21:12:08 +0800 Subject: [PATCH] Add flags so libtommath builds with -O3 This was the default prior to 2022.82 and makes a significant difference to performance. Perhaps at a later time this could be made more configurable. Discussion in https://github.com/mkj/dropbear/issues/174 --- libtommath/makefile_include.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtommath/makefile_include.mk b/libtommath/makefile_include.mk index 711b6301e..f3ceb9c1a 100644 --- a/libtommath/makefile_include.mk +++ b/libtommath/makefile_include.mk @@ -104,7 +104,7 @@ LIBTOOLFLAGS += -no-undefined endif # add in the standard FLAGS -LTM_CFLAGS += $(CFLAGS) +LTM_CFLAGS := $(CFLAGS) $(LTM_CFLAGS) LTM_LFLAGS += $(LFLAGS) LTM_LDFLAGS += $(LDFLAGS) LTM_LIBTOOLFLAGS += $(LIBTOOLFLAGS)