Julian Foad <julianf...@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*