[Xapian-discuss] Mac OS X building...

Olly Betts olly at survex.com
Sun Sep 18 16:01:21 BST 2005


On Sun, Sep 18, 2005 at 03:59:45AM -0400, Chris McDonough wrote:
> In order to get the bindings to build on Mac OS, I had to change the  
> configure script in the xapian-bindings source, replacing all  
> occurrences of "-bundle" with "-bundle -undefined dynamic_lookup".   
> Then, in the "make" step, I needed to ensure that the environment  
> variable "MACOSX_DEPLOYMENT_TARGET" was set to "10.3".

I believe that only this last step is needed, i.e.:

> $ MACOSX_DEPLOYMENT_TARGET=10.3 make

If you do this, libtool should pass "-undefined dynamic_lookup"
automatically.

See previous discussion:

http://thread.gmane.org/gmane.comp.search.xapian.devel/558

It's unclear to me if xapian should force this to be set always, or if
we detect 10.3 or newer, or what.  The environment variable name
suggests that it depends what platform the code is to be deployed on
but it may be poorly named...

Any further insight would be welcome.  Otherwise all I can safely do
is to document the need to set MACOSX_DEPLOYMENT_TARGET in future
releases.

Cheers,
    Olly



More information about the Xapian-discuss mailing list