[FFmpeg-devel] [PATCH] Fix "make test" when shared libraries are built.
Thu Oct 9 16:46:41 CEST 2008
Diego 'Flameeyes' Petten? wrote:
> When building shared libraries the default make test was going to use
> the system libraries, causing the tests to fail, or not be consistent
> with the code just built.
> 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.
> Makefile | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
> diff --git a/Makefile b/Makefile
> index 0b1d2da..0e716ce 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -162,7 +162,9 @@ distclean::
> # regression tests
> -fulltest test: codectest libavtest seektest
> +fulltest test:
> + $(MAKE) codectest libavtest seektest \
> + LD_LIBRARY_PATH=$(BUILD_ROOT)/libavutil:$(BUILD_ROOT)/libavcodec:$(BUILD_ROOT)/libavformat:$(BUILD_ROOT)/libavdevice:$(BUILD_ROOT)/libavfilter:$(BUILD_ROOT)/libswscale:$(BUILD_ROOT)/libpostproc
That's one hell of a long line, and I don't even think it does the right thing.
mans at mansr.com
More information about the ffmpeg-devel