Skip to content

Commit a0cc119

Browse files
patrickdepinguinffontaine
authored andcommitted
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 <[email protected]> [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 <[email protected]>
1 parent c8d05aa commit a0cc119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export NOFORTRAN
3232
export NO_LAPACK
3333
endif
3434

35-
LAPACK_NOOPT := $(filter-out -O0 -O1 -O2 -O3 -Ofast,$(LAPACK_FFLAGS))
35+
LAPACK_NOOPT := $(filter-out -O0 -O1 -O2 -O3 -Ofast -O -Og -Os,$(LAPACK_FFLAGS))
3636

3737
SUBDIRS_ALL = $(SUBDIRS) test ctest utest exports benchmark ../laswp ../bench cpp_thread_test
3838

0 commit comments

Comments
 (0)