You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by marvin greenberg <mg...@dctd.No.spam.saic.com> on 2004/03/08 15:46:57 UTC

building python bindings (and subversion) as dll under cygwin

Has anyone done this successfully?  Is there a cookbook or something?  We use 
cygwin for our build environment, and the python built into cygwin cannot use 
the dlls built from a "stand-alone" python installation.

 From the reading I've done, the additional LT_LDFLAGS = -no-undefined is needed 
to get dlls to be built under CYGWIN.  In addition, all library dependencies 
must be included at every link.  I also came across a (I think) bug in libtool,
which I patched (attached).  There is also some nonsense about including a dummy 
WinMain in every dll.

I've successfully gotten apr, apr-util, and neon to build and install as dll's.
I believe to get ths to work, each dll will have to be installed before building 
the next one (build and install libsvn_subr, build and install libsvn_delta...) 
  But I'm a libtool neophyte, and it is not at all clear what the right 
incantations are, and what I've tried is failing still.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: building python bindings (and subversion) as dll under cygwin

Posted by Max Bowsher <ma...@ukf.net>.
marvin greenberg wrote:
> Has anyone done this successfully?

Subversion, yes. Python bindings, no (not attempted).

> From the reading I've done, the additional LT_LDFLAGS = -no-undefined is
> needed to get dlls to be built under CYGWIN.

Basically, libtool needs -no-undefined before it will attempt a DLL. Of
course, it also requires that there actually be no undefined symbols - which
caused errors building the tests last time I tried.

> In addition, all library
> dependencies must be included at every link.  I also came across a (I
think)
> bug in libtool, which I patched (attached).

Your attachment got lost somewhere.

> There is also some nonsense
> about including a dummy WinMain in every dll.

I have not experienced this.

> I've successfully gotten apr, apr-util, and neon to build and install as
> dll's. I believe to get ths to work, each dll will have to be installed
> before building the next one (build and install libsvn_subr, build and
>   install libsvn_delta...)

Not needed, I'm building svn with DLLs with a simple "./configure && make &&
make install", having patched in the -no-undefined, and patched out the
build of the tests.


Max.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org