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