1 |
commit: 43763a7b650425142ba25aeb09839f967df44ac3 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 7 08:16:03 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 7 08:16:03 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43763a7b |
7 |
|
8 |
dev-lang/python: fix *FLAGS_FOR_BUILD in 3.12.0_alpha1_p1 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-lang/python/python-3.12.0_alpha1_p1.ebuild | 17 ++++++++++++----- |
13 |
1 file changed, 12 insertions(+), 5 deletions(-) |
14 |
|
15 |
diff --git a/dev-lang/python/python-3.12.0_alpha1_p1.ebuild b/dev-lang/python/python-3.12.0_alpha1_p1.ebuild |
16 |
index 0b85a0a8204b..df8279e32c7e 100644 |
17 |
--- a/dev-lang/python/python-3.12.0_alpha1_p1.ebuild |
18 |
+++ b/dev-lang/python/python-3.12.0_alpha1_p1.ebuild |
19 |
@@ -211,13 +211,14 @@ src_configure() { |
20 |
|
21 |
# disable implicit optimization/debugging flags |
22 |
local -x OPT= |
23 |
- # pass system CFLAGS & LDFLAGS as _NODIST, otherwise they'll get |
24 |
- # propagated to sysconfig for built extensions |
25 |
- local -x CFLAGS_NODIST=${CFLAGS} |
26 |
- local -x LDFLAGS_NODIST=${LDFLAGS} |
27 |
- local -x CFLAGS= LDFLAGS= |
28 |
|
29 |
if tc-is-cross-compiler ; then |
30 |
+ # pass system CFLAGS & LDFLAGS as _NODIST, otherwise they'll get |
31 |
+ # propagated to sysconfig for built extensions |
32 |
+ local -x CFLAGS_NODIST=${CFLAGS_FOR_BUILD} |
33 |
+ local -x LDFLAGS_NODIST=${LDFLAGS_FOR_BUILD} |
34 |
+ local -x CFLAGS= LDFLAGS= |
35 |
+ |
36 |
# We need to build our own Python on CBUILD first, and feed it in. |
37 |
# bug #847910 |
38 |
local myeconfargs_cbuild=( |
39 |
@@ -265,6 +266,12 @@ src_configure() { |
40 |
popd &> /dev/null || die |
41 |
fi |
42 |
|
43 |
+ # pass system CFLAGS & LDFLAGS as _NODIST, otherwise they'll get |
44 |
+ # propagated to sysconfig for built extensions |
45 |
+ local -x CFLAGS_NODIST=${CFLAGS} |
46 |
+ local -x LDFLAGS_NODIST=${LDFLAGS} |
47 |
+ local -x CFLAGS= LDFLAGS= |
48 |
+ |
49 |
# Fix implicit declarations on cross and prefix builds. Bug #674070. |
50 |
if use ncurses; then |
51 |
append-cppflags -I"${ESYSROOT}"/usr/include/ncursesw |