From a0cc119f2642778f63142514393db7f923a57445 Mon Sep 17 00:00:00 2001 From: Thomas De Schampheleire Date: Tue, 14 Dec 2021 23:36:16 +0100 Subject: [PATCH] Makefile: also consider -O, -Og and -Os when stripping flags gcc also supports -O, -Og and -Os as optimization flags. They may be given on the make command-line by users. For the calculation of LAPACK_NOOPT, all such flags should be considered. Signed-off-by: Thomas De Schampheleire [Retrieved from: https://git.buildroot.net/buildroot/tree/package/openblas/0003-Makefile-also-consider-Os-when-determining-LAPACK_NO.patch] Signed-off-by: Fabrice Fontaine --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 49fd57ff2..1bb3f6b90 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ export NOFORTRAN export NO_LAPACK endif -LAPACK_NOOPT := $(filter-out -O0 -O1 -O2 -O3 -Ofast,$(LAPACK_FFLAGS)) +LAPACK_NOOPT := $(filter-out -O0 -O1 -O2 -O3 -Ofast -O -Og -Os,$(LAPACK_FFLAGS)) SUBDIRS_ALL = $(SUBDIRS) test ctest utest exports benchmark ../laswp ../bench cpp_thread_test