[MPlayer-dev-eng] configure issue
Fredrik Kuivinen
freku045 at student.liu.se
Wed Mar 20 19:41:11 CET 2002
On Wed, Mar 20, 2002 at 06:14:47PM +0100, Alex Beregszaszi wrote:
> Hi,
>
> i'm trying to install FAAD (with success, also 'make install' didn't copied
> faad.h to the includes dir). The package installed everything to /usr/local/.
>
> (eof offtopic)
>
> Finally i added a dummy function call to the configure test, to check
> if library is installed too (not only headers).
>
> It works right, but, as it's placed to /usr/local/ and it isn't in my
> environment path, ldd returns with libfaad.so.0 => not found. (hmm, but gcc
> knows /usr/local, as it linked the binary)
>
> Shouldn't we check ldd's output too? I mean ldd $file | grep 'not found',
> if returned string isn't empty we should write a message or only set
> configure test to no (disable) and/or add a configure switch for this.
>
What about the -rpath option to ld? If we add "-rpath /usr/local/lib" in the
link stage the executable will search in /usr/local/lib even if /usr/local/lib
isn't in /etc/ld.so.conf or LD_LIBRARY_PATH. If we do this the ldd test won't
be necessary.
/ Fredrik
More information about the MPlayer-dev-eng
mailing list