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

Re: MinGW libraries

From: Andreas Richter <ar_at_oszine.de>
Date: 2005-08-17 22:07:34 CEST

Am Mittwoch, 17. August 2005 21:53 schrieb Branko Čibej:

> Here's how I would like to do it:
>
> * First, teach the gen_win.py to change the names of all the
> libsvn_* static libraries. Currently the static libarries are
> called "libsvn_foo-m.lib", wher "m" is the svn major version (this
> is the same as on Unix). I'd change that to "svn_foo-m.lib". These
> new static lib projects should not have any library dependencies.
>
> * Next, make generator create an additional project for each
> libsvn_* library that creates libsvn_foo-m.n.{dll,lib,exp}, where
> "m" is the major and "n" the minor version number -- these are the
> DLL, the import library and the exported symbol library. The idea
> is to simply take the svn_foo-m.lib static library and link it
> into a DLL. These projects would depend on the static library, the
> external libraries such as APR, and other Subversion DLLs. This
> step requires a DEF file generator, which I believe has been 90%
> done for ages.
>
> * The unit test programs should link with static libraries, not the
> DLLs, because they sometimes use private functions from the
> library. We shouldn't export those from the DLLs, except in the
> IIRC one case where we're cheating already.
>
> * The projects for the command-line programs should come in two
> flavours, statically and dynamically linked, so that people can
> use the statically-linked versions for upgrades. Maybe it would be
> enough to do this for svnadmin only, in which case I'd make it
> statically linked to APR and BDB, too... well, we'll see.
>
> The reason I'd like to rename the static libraries is to make SVN
> consistent with APR on Windows (where you have the static
> apr(_util)-m.lib and shared libapr(_util)-m.dll), and I think it makes
> sense to encode both the major and minor version numbers in the DLLs,
> because we need both to define the available set of APIs.

This sounds good and i'm happy that you want help me and all other developers
who can than link against these dll :)

> You'd have to fix the APR configury and teach it about MinGW/MSys first.
> That's been on the APR wishlist for a long time, but I don't thing it's
> simple to do.

That's the problem. It's not simple and not a "5-minute-job"...

-- 
Greetings / Gruss
Andreas Richter                                      http://www.oszine.de
GPG-KeyID                                                      0x7BA12DD9
Fingerprint             D2E9 202B F4F0 EB16 25DE 5FF7 0CF2 3C57 7BA1 2DD9

  • application/pgp-signature attachment: stored
Received on Wed Aug 17 22:12:38 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.