toolchain/gcc: clean up CFLAGS
authorAndre Heider <a.heider@gmail.com>
Tue, 31 Jan 2023 08:30:18 +0000 (09:30 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Thu, 9 Feb 2023 01:53:35 +0000 (02:53 +0100)
commitad564cb0197865bb6caecd6a0ea628249c08afb2
tree5303f6f6bc062848aac1afbecc9a4e0969b5aa3e
parent4b8b89da506d1272ccbf944b1ece6c8ddaeff2ed
toolchain/gcc: clean up CFLAGS

Instead of having two different ways to pass flags to the gcc build
process, add them as configure args, which is a reliable way to let
gcc pass them around to its various pieces.

Also add CXXFLAGS, since gcc started to use c++ for itself recently
(~10 years ago now).

Signed-off-by: Andre Heider <a.heider@gmail.com>
toolchain/gcc/common.mk