1From ced08de1ad74811bc23d74121751537bfd8e9556 Mon Sep 17 00:00:00 2001 2From: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> 3Date: Fri, 5 Mar 2021 11:15:52 +0100 4Subject: [PATCH] Makefile: also consider -O, -Og and -Os when stripping flags 5 6gcc also supports -O, -Og and -Os as optimization flags. 7They may be given on the make command-line by users. 8 9For the calculation of LAPACK_NOOPT, all such flags should be considered. 10 11Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> 12--- 13 Makefile | 2 +- 14 1 file changed, 1 insertion(+), 1 deletion(-) 15 16diff --git a/Makefile b/Makefile 17index a22e16ba..fc5fe3f5 100644 18--- a/Makefile 19+++ b/Makefile 20@@ -32,7 +32,7 @@ export NOFORTRAN 21 export NO_LAPACK 22 endif 23 24-LAPACK_NOOPT := $(filter-out -O0 -O1 -O2 -O3 -Ofast,$(LAPACK_FFLAGS)) 25+LAPACK_NOOPT := $(filter-out -O0 -O1 -O2 -O3 -Ofast -O -Og -Os,$(LAPACK_FFLAGS)) 26 27 SUBDIRS_ALL = $(SUBDIRS) test ctest utest exports benchmark ../laswp ../bench cpp_thread_test 28 29-- 302.26.2 31 32