summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2004-12-26 23:07:48 +0000
committerJack Jansen <jack.jansen@cwi.nl>2004-12-26 23:07:48 +0000
commitbe95462c1c2955a9e41d754e7ebe9f825c980409 (patch)
tree4836eae1a9673b0b564f222ff1f0790e82d61427 /configure.in
parent6116f07fdc8793eb3d8e0c48de3d705d11c31dae (diff)
downloadcpython-git-be95462c1c2955a9e41d754e7ebe9f825c980409.tar.gz
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.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 68720e798c..9371a577c8 100644
--- a/configure.in
+++ b/configure.in
@@ -1324,11 +1324,12 @@ then
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