autotools: Workaround a Ubuntu issue when installing in /usr/local/lib
commit10e9dd70899cf7bc28246d84dce8a6483ed85f80
authorColomban Wendling <ban@herbesfolles.org>
Sun, 5 Jul 2015 14:17:55 +0000 (5 16:17 +0200)
committerColomban Wendling <ban@herbesfolles.org>
Sun, 5 Jul 2015 14:17:55 +0000 (5 16:17 +0200)
treeb15912eb5a04a0efeb7cf8f785ae3243e925cc74
parent6ebf90ad1d04b5c8eb50f69e9b497486ac66a10c
autotools: Workaround a Ubuntu issue when installing in /usr/local/lib

Ubuntu's linker apparently has a bug when installing in /usr/local/lib,
as it is setup in such a way that makes libtool recognize it correctly
as a system path so doesn't add RPATH to our executable, but ld can't
find the library without an explicit ldconfig call (unlike when
installing in /usr/lib).

So, workaround this by explicitly calling ldconfig when installing in
/usr/local/lib -- and when our library is actually not found, to try
and avoid doing something unnecessary on working systems, like e.g.
Debian.
src/Makefile.am