[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Linkage of SWIG/PYthon bindings against libpython on Solaris with gcc

From: Daniel Rall <dlr_at_collab.net>
Date: 2005-12-21 22:37:14 CET

On Wed, 21 Dec 2005, Max Bowsher wrote:

> Daniel Rall wrote:
...
> > What's the need behind the explicit linkage with of the bindings with
> > libpython?
>
> It's absolutely required on PE targets (i.e. Cygwin).
> It's not at all required on Linux ELF.
> It may or may not be important on Darwin.
> It likely isn't required on at least some miscellaneous Unixes.
...
> > Understandably, I would prefer to be able to build Subversion's
> > bindings against Python 2.2.3, rather than upgrade Python. Thoughts?
>
> Since Python doesn't appear to be handing us linker arguments which can
> be unconditionally used as is, just give up and conditionalize
> get-py-info.py --libs to only return anything on Cygwin and Darwin.

Max, I began implementing this, then started wondering if it wouldn't
be more appropriate to have swig.m4 not call 'get-py-info.py --libs'
under Cygwin and Darwin (rather than changing get-py-info.py itself).
Thoughts?

-- 
Daniel Rall

  • application/pgp-signature attachment: stored
Received on Sun Dec 25 00:15:16 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.