[Python-checkins] python/dist/src Makefile.pre.in,1.110,1.111 configure.in,1.385,1.386 configure,1.374,1.375

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Mon, 20 Jan 2003 02:47:52 -0800


Update of /cvsroot/python/python/dist/src
In directory sc8-pr-cvs1:/tmp/cvs-serv26667

Modified Files:
	Makefile.pre.in configure.in configure 
Log Message:
On MacOSX, added -prebind option to link phase for executable (and
framework, if applicable). This speeds up startup time by up to 50%.


Index: Makefile.pre.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/Makefile.pre.in,v
retrieving revision 1.110
retrieving revision 1.111
diff -C2 -d -r1.110 -r1.111
*** Makefile.pre.in	20 Jan 2003 01:13:21 -0000	1.110
--- Makefile.pre.in	20 Jan 2003 10:47:47 -0000	1.111
***************
*** 108,111 ****
--- 108,113 ----
  PYTHONFRAMEWORKPREFIX=	@PYTHONFRAMEWORKPREFIX@
  PYTHONFRAMEWORKINSTALLDIR= @PYTHONFRAMEWORKINSTALLDIR@
+ # Options to enable prebinding (for fast startup)
+ OTHER_LIBTOOL_OPT = -prebind -seg1addr 0x10000000
  
  # Environment to run shared python without installed libraries

Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.385
retrieving revision 1.386
diff -C2 -d -r1.385 -r1.386
*** configure.in	7 Jan 2003 22:42:45 -0000	1.385
--- configure.in	20 Jan 2003 10:47:47 -0000	1.386
***************
*** 1165,1169 ****
  		# 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"
  		if test "$enable_framework"
  		then
--- 1165,1173 ----
  		# not used by the core itself but which needs to be in the core so
  		# that dynamically loaded extension modules have access to it.
! 		# -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

Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.374
retrieving revision 1.375
diff -C2 -d -r1.374 -r1.375
*** configure	7 Jan 2003 22:42:04 -0000	1.374
--- configure	20 Jan 2003 10:47:48 -0000	1.375
***************
*** 1,4 ****
  #! /bin/sh
! # From configure.in Revision: 1.384 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.53 for python 2.3.
--- 1,4 ----
  #! /bin/sh
! # From configure.in Revision: 1.385 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.53 for python 2.3.
***************
*** 9444,9448 ****
  		# 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"
  		if test "$enable_framework"
  		then
--- 9444,9452 ----
  		# not used by the core itself but which needs to be in the core so
  		# that dynamically loaded extension modules have access to it.
! 		# -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