Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c110f86

Browse files
committed
Always set CONFIGURE_MACOSX_DEPLOYMENT_TARGET otherwise it may be set
to an empty value and distutils will get confused lateron.
1 parent 97db05d commit c110f86

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
# From configure.in Revision: 1.477 .
2+
# From configure.in Revision: 1.478 .
33
# Guess values for system-dependent variables and create Makefiles.
44
# Generated by GNU Autoconf 2.59 for python 2.5.
55
#
@@ -10323,11 +10323,11 @@ then
1032310323
# Use -undefined dynamic_lookup whenever possible (10.3 and later).
1032410324
# This allows an extension to be used in any Python
1032510325
cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10326+
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
1032610327
if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
1032710328
then
1032810329
LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
1032910330
BLDSHARED="$LDSHARED"
10330-
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
1033110331
else
1033210332
LDSHARED='$(CC) $(LDFLAGS) -bundle'
1033310333
if test "$enable_framework" ; then

configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,11 +1325,11 @@ then
13251325
# Use -undefined dynamic_lookup whenever possible (10.3 and later).
13261326
# This allows an extension to be used in any Python
13271327
cur_target=`sw_vers -productVersion | sed 's/\(10\.[[0-9]]*\).*/\1/'`
1328+
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
13281329
if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
13291330
then
13301331
LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13311332
BLDSHARED="$LDSHARED"
1332-
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
13331333
else
13341334
LDSHARED='$(CC) $(LDFLAGS) -bundle'
13351335
if test "$enable_framework" ; then

0 commit comments

Comments
 (0)