Commit 31893c4
committed
macOS framework builds (--enable-framework) now produce relocatable
frameworks. The installed framework can be moved to any location and
will work without requiring install_name_tool rewriting by users.
This uses install-time transformation: build-time behavior is unchanged
(absolute install names), and install_name_tool transforms the installed
binaries to use @rpath.
Changes:
- Add -headerpad_max_install_names to LINKFORSHARED and pythonw build
- Transform dylib install name to @rpath at install time
- Add LC_RPATH entries to installed binaries (bin/python3, Python.app)
- Compute rpath depths dynamically via os.path.relpath()
Signed-off-by: Dominique Fuchs <df@0x9d.net>
1 parent 6b45381 commit 31893c4
File tree
5 files changed
+26
-3
lines changed- Mac
- Misc/NEWS.d/next/macOS
5 files changed
+26
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
173 | 176 | | |
174 | 177 | | |
175 | 178 | | |
176 | | - | |
| 179 | + | |
| 180 | + | |
177 | 181 | | |
178 | 182 | | |
179 | 183 | | |
| |||
224 | 228 | | |
225 | 229 | | |
226 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
227 | 238 | | |
228 | 239 | | |
229 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2457 | 2457 | | |
2458 | 2458 | | |
2459 | 2459 | | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
2460 | 2466 | | |
2461 | 2467 | | |
2462 | 2468 | | |
| |||
3059 | 3065 | | |
3060 | 3066 | | |
3061 | 3067 | | |
| 3068 | + | |
| 3069 | + | |
| 3070 | + | |
3062 | 3071 | | |
3063 | 3072 | | |
3064 | 3073 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
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 | |
|---|---|---|---|
| |||
3633 | 3633 | | |
3634 | 3634 | | |
3635 | 3635 | | |
3636 | | - | |
| 3636 | + | |
3637 | 3637 | | |
3638 | 3638 | | |
3639 | 3639 | | |
| |||
0 commit comments