Makefile: also consider -O, -Og and -Os when stripping flags
authorThomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Tue, 14 Dec 2021 22:36:16 +0000 (23:36 +0100)
committerFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 14 Dec 2021 22:36:16 +0000 (23:36 +0100)
commita0cc119f2642778f63142514393db7f923a57445
tree9ec1c6e741c29c9a529d2670106190f94b0851ac
parentc8d05aa7a5967745aa93c20740127063436bd663
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 <thomas.de_schampheleire@nokia.com>
[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 <fontaine.fabrice@gmail.com>
Makefile