[cairo] cairo release 1.10.0, upgrade
mathieu.lacage at sophia.inria.fr
Thu Sep 9 23:54:45 PDT 2010
On Fri, 2010-09-10 at 08:48 +0300, Alexander Shulgin wrote:
> Now if I try to check which cairo it is linked to with this command:
> $ ldd a.out | grep cairo
> libcairo.so.2 => /usr/lib/libcairo.so.2 (0x00007f1bf414b000)
> it confuses me a lot. For some reason during my past experience I
> came to think that the exact path to the libraries is recorded in a
> binary at the linking time, but obivously that's not true (now, or
> never was).
It never was the case.
> So for a compiled program to use the locally installed cairo, it is
> indeed required to set LD_LIBRARY_PATH at the time of execution:
You could use -Wl,-rpath,/home/user/lib on your link line to avoid the
need to use LD_LIBRARY_PATH ever again.
"info ld" will tell you more about the -rpath option.
More information about the cairo