Commit bc8a7e1
Use target.aix_so_archive to decide to archive shared library in AIX
Previously, AIX support was updated to archive shared libraries per AIX
platform conventions, which expect .a files that contain .so files. This
is usually correct, but an edge case occurs for loadable plugins, e.g.
what meson creates for `shared_module()`. A notable example is python
extensions (SciPy, for example).
These should *not* be archived, because the .so file itself needs to be
loaded as a plugin. For example, SciPy fails to import in the python
interpreter.
Handle this by differentiating between plugins and regular libraries,
and only archiving when safe to do so.
Fixes mesonbuild#12219
(cherry picked from commit f4d19db)1 parent ea58090 commit bc8a7e1
File tree
4 files changed
+15
-9
lines changed- mesonbuild
- backend
4 files changed
+15
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
342 | 345 | | |
343 | 346 | | |
344 | 347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1054 | 1054 | | |
1055 | 1055 | | |
1056 | 1056 | | |
1057 | | - | |
1058 | | - | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
1059 | 1060 | | |
1060 | 1061 | | |
1061 | 1062 | | |
| |||
3505 | 3506 | | |
3506 | 3507 | | |
3507 | 3508 | | |
3508 | | - | |
3509 | | - | |
3510 | | - | |
3511 | | - | |
3512 | | - | |
3513 | 3509 | | |
3514 | 3510 | | |
3515 | 3511 | | |
| |||
3714 | 3710 | | |
3715 | 3711 | | |
3716 | 3712 | | |
3717 | | - | |
| 3713 | + | |
3718 | 3714 | | |
3719 | 3715 | | |
3720 | 3716 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2148 | 2148 | | |
2149 | 2149 | | |
2150 | 2150 | | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
2151 | 2154 | | |
2152 | 2155 | | |
2153 | 2156 | | |
| |||
2495 | 2498 | | |
2496 | 2499 | | |
2497 | 2500 | | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
2498 | 2504 | | |
2499 | 2505 | | |
2500 | 2506 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
| 716 | + | |
716 | 717 | | |
717 | | - | |
| 718 | + | |
718 | 719 | | |
719 | 720 | | |
720 | 721 | | |
| |||
0 commit comments