mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
On MacOSX, added -prebind option to link phase for executable (and
framework, if applicable). This speeds up startup time by up to 50%.
This commit is contained in:
parent
7a503a4ee6
commit
0780e470dc
3 changed files with 13 additions and 3 deletions
|
@ -1164,7 +1164,11 @@ then
|
|||
# -u _PyMac_Error is needed to pull in the mac toolbox glue, which is
|
||||
# not used by the core itself but which needs to be in the core so
|
||||
# that dynamically loaded extension modules have access to it.
|
||||
LINKFORSHARED="$extra_undefs -framework System"
|
||||
# -prebind causes the executable to assume dynamic libraries are at their
|
||||
# preferred address, which speeds up startup. We specify it here
|
||||
# in stead of in LDFLAGS because it does not seem to work for bundle
|
||||
# plugins (as of OSX 10.2).
|
||||
LINKFORSHARED="$extra_undefs -framework System -prebind"
|
||||
if test "$enable_framework"
|
||||
then
|
||||
LINKFORSHARED="$LINKFORSHARED -framework Python"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue