Patch #1097739 by Bob Ippolito:
MacOSX: if we cannot use -undefined dynamic_lookup (such as on 10.2 or earlier) we link extension directly against the dynamic library in the framework in stead of against the framework. This will fix building extensions for 2.3 after 2.4 has been installed too.
This commit is contained in:
parent
5a3c7c39db
commit
da49e1981a
|
@ -1,5 +1,5 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# From configure.in Revision: 1.478 .
|
# From configure.in Revision: 1.479 .
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.59 for python 2.5.
|
# Generated by GNU Autoconf 2.59 for python 2.5.
|
||||||
#
|
#
|
||||||
|
@ -10302,8 +10302,8 @@ then
|
||||||
LDSHARED='$(CC) $(LDFLAGS) -bundle'
|
LDSHARED='$(CC) $(LDFLAGS) -bundle'
|
||||||
if test "$enable_framework" ; then
|
if test "$enable_framework" ; then
|
||||||
# Link against the framework. All externals should be defined.
|
# Link against the framework. All externals should be defined.
|
||||||
BLDSHARED="$LDSHARED "'-Wl,-F. -framework $(PYTHONFRAMEWORK)'
|
BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
||||||
LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)'
|
LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
||||||
else
|
else
|
||||||
# No framework. Ignore undefined symbols, assuming they come from Python
|
# No framework. Ignore undefined symbols, assuming they come from Python
|
||||||
LDSHARED="$LDSHARED -undefined suppress"
|
LDSHARED="$LDSHARED -undefined suppress"
|
||||||
|
@ -10312,8 +10312,8 @@ then
|
||||||
LDSHARED='$(CC) $(LDFLAGS) -bundle'
|
LDSHARED='$(CC) $(LDFLAGS) -bundle'
|
||||||
if test "$enable_framework" ; then
|
if test "$enable_framework" ; then
|
||||||
# Link against the framework. All externals should be defined.
|
# Link against the framework. All externals should be defined.
|
||||||
BLDSHARED="$LDSHARED "'-Wl,-F. -framework $(PYTHONFRAMEWORK)'
|
BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
||||||
LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)'
|
LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
||||||
else
|
else
|
||||||
# No framework, use the Python app as bundle-loader
|
# No framework, use the Python app as bundle-loader
|
||||||
BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
|
BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
|
||||||
|
@ -10332,8 +10332,8 @@ then
|
||||||
LDSHARED='$(CC) $(LDFLAGS) -bundle'
|
LDSHARED='$(CC) $(LDFLAGS) -bundle'
|
||||||
if test "$enable_framework" ; then
|
if test "$enable_framework" ; then
|
||||||
# Link against the framework. All externals should be defined.
|
# Link against the framework. All externals should be defined.
|
||||||
BLDSHARED="$LDSHARED "'-Wl,-F. -framework $(PYTHONFRAMEWORK)'
|
BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
||||||
LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)'
|
LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
||||||
else
|
else
|
||||||
# No framework, use the Python app as bundle-loader
|
# No framework, use the Python app as bundle-loader
|
||||||
BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
|
BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
|
||||||
|
@ -10429,7 +10429,7 @@ then
|
||||||
LINKFORSHARED="$extra_undefs"
|
LINKFORSHARED="$extra_undefs"
|
||||||
if test "$enable_framework"
|
if test "$enable_framework"
|
||||||
then
|
then
|
||||||
LINKFORSHARED="$LINKFORSHARED -Wl,-F. -framework "'$(PYTHONFRAMEWORK)'
|
LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
||||||
fi
|
fi
|
||||||
LINKFORSHARED="$LINKFORSHARED";;
|
LINKFORSHARED="$LINKFORSHARED";;
|
||||||
OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
|
OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
|
||||||
|
|
14
configure.in
14
configure.in
|
@ -1304,8 +1304,8 @@ then
|
||||||
LDSHARED='$(CC) $(LDFLAGS) -bundle'
|
LDSHARED='$(CC) $(LDFLAGS) -bundle'
|
||||||
if test "$enable_framework" ; then
|
if test "$enable_framework" ; then
|
||||||
# Link against the framework. All externals should be defined.
|
# Link against the framework. All externals should be defined.
|
||||||
BLDSHARED="$LDSHARED "'-Wl,-F. -framework $(PYTHONFRAMEWORK)'
|
BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
||||||
LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)'
|
LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
||||||
else
|
else
|
||||||
# No framework. Ignore undefined symbols, assuming they come from Python
|
# No framework. Ignore undefined symbols, assuming they come from Python
|
||||||
LDSHARED="$LDSHARED -undefined suppress"
|
LDSHARED="$LDSHARED -undefined suppress"
|
||||||
|
@ -1314,8 +1314,8 @@ then
|
||||||
LDSHARED='$(CC) $(LDFLAGS) -bundle'
|
LDSHARED='$(CC) $(LDFLAGS) -bundle'
|
||||||
if test "$enable_framework" ; then
|
if test "$enable_framework" ; then
|
||||||
# Link against the framework. All externals should be defined.
|
# Link against the framework. All externals should be defined.
|
||||||
BLDSHARED="$LDSHARED "'-Wl,-F. -framework $(PYTHONFRAMEWORK)'
|
BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
||||||
LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)'
|
LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
||||||
else
|
else
|
||||||
# No framework, use the Python app as bundle-loader
|
# No framework, use the Python app as bundle-loader
|
||||||
BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
|
BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
|
||||||
|
@ -1334,8 +1334,8 @@ then
|
||||||
LDSHARED='$(CC) $(LDFLAGS) -bundle'
|
LDSHARED='$(CC) $(LDFLAGS) -bundle'
|
||||||
if test "$enable_framework" ; then
|
if test "$enable_framework" ; then
|
||||||
# Link against the framework. All externals should be defined.
|
# Link against the framework. All externals should be defined.
|
||||||
BLDSHARED="$LDSHARED "'-Wl,-F. -framework $(PYTHONFRAMEWORK)'
|
BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
||||||
LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)'
|
LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
||||||
else
|
else
|
||||||
# No framework, use the Python app as bundle-loader
|
# No framework, use the Python app as bundle-loader
|
||||||
BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
|
BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
|
||||||
|
@ -1427,7 +1427,7 @@ then
|
||||||
LINKFORSHARED="$extra_undefs"
|
LINKFORSHARED="$extra_undefs"
|
||||||
if test "$enable_framework"
|
if test "$enable_framework"
|
||||||
then
|
then
|
||||||
LINKFORSHARED="$LINKFORSHARED -Wl,-F. -framework "'$(PYTHONFRAMEWORK)'
|
LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
||||||
fi
|
fi
|
||||||
LINKFORSHARED="$LINKFORSHARED";;
|
LINKFORSHARED="$LINKFORSHARED";;
|
||||||
OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
|
OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
|
||||||
|
|
Loading…
Reference in New Issue