[Pythonmac-SIG] -Wl, -x in distutils module linking causes crashes

Bob Ippolito bob at redivi.com
Mon Sep 22 14:32:52 EDT 2003


On Monday, Sep 22, 2003, at 14:14 America/New_York, Nicholas Riley 
wrote:

> On Mon, Sep 22, 2003 at 11:24:21AM +0200, Jack Jansen wrote:
>
>> Because the "-Wl,-bind_at_load -flat_namespace -undefined suppress"
>> is bit is really very bad practice.  It basically tells the linker
>> "don't worry about any external symbol, and just hack something
>> together at runtime".
>
> Right, as I wrote, we're moving away from this GNU libtool-based build
> method.  That's just the standard set of flags libtool provides to get
> behavior as other Unix platforms provide.  Aha!  I found this comment
> in the libtool source:

Yeah, I noticed this when I built Metakit.  As far as C++ global 
constructors go, I think you pretty much do have to bind_at_load, but I 
doubt you have to do flat_namespace.  It's probably possible to keep 
the -Wl,-x, but add -Wl,"-exported_symbols_list somefile", but I don't 
really see an advantage to that.

In any case, I have successfully built, tested, and used Mk4py on OS X. 
  A binary installer for Mk4py 2.4.9.2 is available from my Package 
Manager repository ( 
http://undefined.org/python/pimp/darwin-6.6-Power_Macintosh.html ).

-bob




More information about the Pythonmac-SIG mailing list