[FFmpeg-devel] [PATCH] Fix "make test" when shared libraries are built.
Thu Oct 9 18:49:59 CEST 2008
M?ns Rullg?rd <mans at mansr.com> writes:
>> By setting LD_LIBRARY_PATH explicitly, make test will ensure the
>> libraries thar are being built are used, and make test will succeed
>> and be consistent with the code.
> LD_LIBRARY_PATH is a gnu thing, so this will not work on e.g. Solaris.
Quoting from ld.so.1(1) from a SunOs 5.9 (Solaris 9) system:
The LD_LIBRARY_PATH environment variable, if set, is
used to enhance the search path that the runtime
linker uses to find dynamic dependencies.
LD_LIBRARY_PATH specifies a colon-separated list of
directories that are searched before the default
directories. Also notice that LD_LIBRARY_PATH adds
additional semantics to ld(1).
NB: The proposed patch does not set LD_LIBRARY_PATH for ld(1) calls, but
only for running the testsuite.
Alternatively, setting -rpath for the test binaries could be considered
(with both gnu and solaris toolchains support, btw).
Reinhard Tartler, KeyID 945348A4
More information about the ffmpeg-devel