[Python-bugs-list] [ python-Bugs-467055 ] -flat_namespace not in Makefile.pre.in for Darwin/MacOS
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 02 Oct 2001 06:09:43 -0700
Bugs item #467055, was opened at 2001-10-01 19:55
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=467055&group_id=5470
>Category: Macintosh
>Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Mitchell L Model (mlm)
>Assigned to: Jack Jansen (jackjansen)
Summary: -flat_namespace not in Makefile.pre.in for Darwin/MacOS
Initial Comment:
Python 2.2a4 fixed Python 2.1's inadequate LDSHARED setting for Darwin/OS X as far as building Python is concerned. However, it does not go quite far enough and the problem still exists for building other software that uses a similar configuration process, in particular Zope 2.4(.1). It turns out that the top-level Makefile and Makefile.pre both have -flat_namespace correctly set, but Makefile.pre.in does not. Since Makefile.pre.in gets installed in /usr/local/lib/python2.2/config, and other software using this build process reference Makefile.pre.in from there, -flat_namespace isn't set for the other software. Manually adding:
LDSHARED= $(CC) $(LDFLAGS) -flat_namespace -undefined suppress
fixed the problem, at least for building Zope 2.4. I don't know how much of that is actually needed other than -flat_namespace.
Please fix this for the real release! The improvements for building on Mac OS X are wonderful -- it would be a shame for them to fail for the lack of one line in one file!
(I'm using Mac OS 10.1, in case that matters, with the developer tools installed.)
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=467055&group_id=5470