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

Re: [patch submission] gen-make: Option to statically link APR.

From: Robert Dailey <rcdailey_at_gmail.com>
Date: Sat, 5 Sep 2009 13:40:16 -0500

On Sat, Sep 5, 2009 at 1:24 PM, D.J. Heap <djheap_at_gmail.com> wrote:

> On Sat, Sep 5, 2009 at 9:02 AM, Robert Dailey<rcdailey_at_gmail.com> wrote:
> > Hello,
> > I have attached a patch which will add a new command line parameter to
> > gen-make.py called "--apr-static" that forces subversion to link against
> the
> > APR static libraries by defining 3 new preprocessor directives:
> > APR_DECLARE_STATIC
> > APU_DECLARE_STATIC
> > API_DECLARE_STATIC
> > Please review the patch and let me know if you plan to patch it to svn
> > trunk.
>
>
> I couldn't get this to work for me -- the Subversion commandline
> projects (like svn.exe) failed to link because they were still setup
> to link with the dynamic apr libraries (libapr-1.lib) rather than the
> static apr libraries (apr-1.lib).
>
> Note that I think they were using the correct header definitions due
> to the directives above, but their linker input settings didn't get
> changed to use the static libraries instead of the dynamic ones (and I
> didn't see anything in the patch to do that?).
>
> Were you able to get the svn.exe to build and link ok with this patch?
>
> The server modules failed as well -- they probably should not be
> statically linked in any case since they are loaded into Apache.

Sorry I only tested this on the SVN libraries. I did not test any
executables. I can't get the executables to build in the first place (before
the changes I made).

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2391328
Received on 2009-09-05 20:40:35 CEST

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.