Commit 7f5e3f0
authored
Part of the work on PEP 738: Adding Android as a supported platform.
* Rename the LIBPYTHON variable to MODULE_LDFLAGS, to more accurately
reflect its purpose.
* Edit makesetup to use MODULE_LDFLAGS when linking extension modules.
* Edit the Makefile so that extension modules depend on libpython on
Android and Cygwin.
* Restore `-fPIC` on Android. It was removed several years ago with a
note that the toolchain used it automatically, but this is no longer
the case. Omitting it causes all linker commands to fail with an error
like `relocation R_AARCH64_ADR_PREL_PG_HI21 cannot be used against
symbol '_Py_FalseStruct'; recompile with -fPIC`.
1 parent 113687a commit 7f5e3f0
File tree
5 files changed
+19
-25
lines changed- Misc/NEWS.d/next/Build
- Modules
5 files changed
+19
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
2917 | 2917 | | |
2918 | 2918 | | |
2919 | 2919 | | |
2920 | | - | |
| 2920 | + | |
2921 | 2921 | | |
2922 | 2922 | | |
2923 | 2923 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | 90 | | |
103 | 91 | | |
104 | 92 | | |
| |||
286 | 274 | | |
287 | 275 | | |
288 | 276 | | |
289 | | - | |
| 277 | + | |
290 | 278 | | |
291 | 279 | | |
292 | 280 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1360 | 1360 | | |
1361 | 1361 | | |
1362 | 1362 | | |
| 1363 | + | |
1363 | 1364 | | |
1364 | 1365 | | |
1365 | 1366 | | |
| |||
3333 | 3334 | | |
3334 | 3335 | | |
3335 | 3336 | | |
3336 | | - | |
3337 | 3337 | | |
3338 | 3338 | | |
3339 | 3339 | | |
| |||
5888 | 5888 | | |
5889 | 5889 | | |
5890 | 5890 | | |
5891 | | - | |
| 5891 | + | |
| 5892 | + | |
| 5893 | + | |
| 5894 | + | |
5892 | 5895 | | |
5893 | | - | |
5894 | | - | |
5895 | | - | |
| 5896 | + | |
| 5897 | + | |
5896 | 5898 | | |
5897 | 5899 | | |
5898 | 5900 | | |
| |||
0 commit comments