commit: ceab713f67593524e98c4f75995860723095dec6
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 30 01:43:22 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jan 30 17:37:08 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ceab713f
toolchain-funcs.eclass: consistently pass CPPFLAGS before C{,XX}FLAGS
This is generally what we do in patches and such.
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/toolchain-funcs.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index 9bb660e4f71f..c2c2d1199155 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.eclass
@@ -1211,7 +1211,7 @@ tc-get-cxx-stdlib() {
#endif
'
local res=$(
- $(tc-getCXX) ${CXXFLAGS} ${CPPFLAGS} -x c++ -E -P - \
+ $(tc-getCXX) ${CPPFLAGS} ${CXXFLAGS} -x c++ -E -P - \
<<<"${code}" 2>/dev/null
)
@@ -1239,7 +1239,7 @@ tc-get-cxx-stdlib() {
# If the runtime is not recognized, the function returns 1.
tc-get-c-rtlib() {
local res=$(
- $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} \
+ $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} \
-print-libgcc-file-name 2>/dev/null
)