[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: D.J. Heap <djheap_at_gmail.com>
Date: Sat, 5 Sep 2009 12:24:46 -0600

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.

DJ

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2391323
Received on 2009-09-05 20:25:10 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.