08-17-06 12:14 PM
On 17/08/2006, at 10:55 AM, Justin Erenkrantz wrote:
> On 8/16/06, Graham Dumpleton <grahamd@dscpl.com.au> wrote:
>
> What does your LINKFORSHARED variable have? See
> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/config/Makefile.
>
> Again I have:
>
> LINKFORSHARED=-u __dummy -u _PyMac_Error -framework System
> $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
> -framework CoreServices -framework Foundation
Same:
LINKFORSHARED= -u __dummy -u _PyMac_Error -framework System $
(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK) -
framework CoreServices -framework Foundation
LDSHARED in same file is:
LDSHARED= $(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup
With src/Makefile in mod_python source having:
LDFLAGS= -Wl,-framework,Python -u __dummy -u _PyMac_Error -framework
System $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK) -
framework CoreServices -framework Foundation -Wl,-F. -Wl,-F.
FWIW, my XCode version is:
xcode_2.3_8m1780_oz693620813.dmg
Also, dist/setup.py in mod_python source contains:
if sys.platform == "darwin":
if not '-undefined' in sysconfig.get_config_var("LDSHARED").split
():
sysconfig._config_vars["LDSHARED"] = \
string.replace(sysconfig.get_config_var("LDSHARED"), \
" -bundle "," -bundle -flat_namespace -undefined
suppress ")
sysconfig._config_vars["BLDSHARED"] = \
string.replace(sysconfig.get_config_var("BLDSHARED"), \
" -bundle "," -bundle -flat_namespace -undefined
suppress ")
But I think this was a workaround for older version of Mac OS X.
What is the actual error you are getting when building?
Graham
[ Post a follow-up to this message ]
|