toolchain.eclass: always use -O2, even when no -O is passed in.
authorSergei Trofimovich <slyfox@gentoo.org>
Fri, 6 Mar 2020 18:29:12 +0000 (18:29 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Fri, 6 Mar 2020 18:35:50 +0000 (18:35 +0000)
commita664bdd217c8f4fbb108d6c2585425383b749b3b
tree5fa07480673f4e4ca85a06cc6f722e5c0edb86d4
parent1aeca8385689f5cdd20150b8032cc6657cd259cb
toolchain.eclass: always use -O2, even when no -O is passed in.

Mike noticed that CFLAGS without any optimization options
still effectively are -O0. Let's follow glibc ebuild here
and always use -O2.

Suggested-by: Mike Gilbert
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain.eclass