[Python-checkins] python/dist/src configure.in, 1.477,
1.478 configure, 1.464, 1.465
jackjansen at users.sourceforge.net
jackjansen at users.sourceforge.net
Mon Dec 27 00:07:52 CET 2004
Update of /cvsroot/python/python/dist/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3095
Modified Files:
configure.in configure
Log Message:
After discussion on the PythonMac-SIG it was decided that it is better
to make using "-undefined dynamic_lookup" for linking extensions more
automatic on 10.3 and later. So if we're on that platform and
MACOSX_DEPLOYMENT_TARGET is not set we now set it to the current OSX
version during configure. Additionally, distutils will pick up the
configure-time value by default.
Will backport.
Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.477
retrieving revision 1.478
diff -u -d -r1.477 -r1.478
--- configure.in 24 Dec 2004 08:22:17 -0000 1.477
+++ configure.in 26 Dec 2004 23:07:35 -0000 1.478
@@ -1324,11 +1324,12 @@
Darwin/*)
# Use -undefined dynamic_lookup whenever possible (10.3 and later).
# This allows an extension to be used in any Python
- if test ${MACOSX_DEPLOYMENT_TARGET-10.1} '>' 10.2
+ cur_target=`sw_vers -productVersion | sed 's/\(10\.[[0-9]]*\).*/\1/'`
+ if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
then
LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
BLDSHARED="$LDSHARED"
- CONFIGURE_MACOSX_DEPLOYMENT_TARGET=$MACOSX_DEPLOYMENT_TARGET
+ CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
else
LDSHARED='$(CC) $(LDFLAGS) -bundle'
if test "$enable_framework" ; then
Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.464
retrieving revision 1.465
diff -u -d -r1.464 -r1.465
--- configure 24 Dec 2004 08:22:17 -0000 1.464
+++ configure 26 Dec 2004 23:07:36 -0000 1.465
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 1.475 .
+# From configure.in Revision: 1.477 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for python 2.5.
#
@@ -10322,11 +10322,12 @@
Darwin/*)
# Use -undefined dynamic_lookup whenever possible (10.3 and later).
# This allows an extension to be used in any Python
- if test ${MACOSX_DEPLOYMENT_TARGET-10.1} '>' 10.2
+ cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
+ if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
then
LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
BLDSHARED="$LDSHARED"
- CONFIGURE_MACOSX_DEPLOYMENT_TARGET=$MACOSX_DEPLOYMENT_TARGET
+ CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
else
LDSHARED='$(CC) $(LDFLAGS) -bundle'
if test "$enable_framework" ; then
More information about the Python-checkins
mailing list