subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Martin <>
Subject Re: [PATCH] On the 'ra-git' branch: update to libgit2 v0.22
Date Wed, 01 Apr 2015 13:40:44 GMT
Julian Foad <> 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*

View raw message