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

Re: [PATCH] On the 'ra-git' branch: update to libgit2 v0.22

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Wed, 01 Apr 2015 14:40:44 +0100

Julian Foad <julianfoad_at_btopenworld.com> writes:

> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.local/libgit2-0.20.0/lib
> configure [...] --with-libgit2=$HOME/.local/libgit2-0.20.0
>
> works.
>
> configure [...] --with-libgit2=$HOME/.local/libgit2-0.20.0 \
> LDFLAGS=-Wl,-rpath,$HOME/.local/libgit2-0.20.0/lib
>
> also works.
>
> Can we make 'configure --with-libgit2' do one of those automatically?

Note we have a similar problem with serf, and possibly other libraries.

Modifying LD_LIBRARY_PATH is probably wrong, it would not persist beyond
the build.

Setting LDFLAGS=-Wl,-rpath might work but portability is an issue, it's
a bit like trying to reinventing libtool and we might break systems we
don't use. Perhaps we should pass "-rpath $(libgit2)/lib" to libtool.
On my system that breaks linking executables so we would need to do it
just when linking libraries.

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
Received on 2015-04-01 15:42:45 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.