Make: $ LD_RUN_PATH ignored

I am compiling FFmpeg from source code.

./configure --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-x11grab --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264
make
make install

ldd /usr/local/bin/ffmpeg gave me this

linux-gate.so.1 =>  (0xb7717000)
libavdevice.so.53 => not found
libavfilter.so.2 => not found
libavformat.so.54 => not found
libavcodec.so.54 => not found
libpostproc.so.52 => not found
libswresample.so.0 => not found
libswscale.so.2 => not found
libavutil.so.51 => not found
libm.so.6 => /lib/i386-linux-gnu/tls/i686/nosegneg/libm.so.6 (0xb76e3000)
libpthread.so.0 => /lib/i386-linux-gnu/tls/i686/nosegneg/libpthread.so.0 (0xb76ca000)
libc.so.6 => /lib/i386-linux-gnu/tls/i686/nosegneg/libc.so.6 (0xb7569000)
/lib/ld-linux.so.2 (0xb7718000)

Configuring $LD_LIBRARY_PATHon the /usr/local/libfixed "not found" error, but for the reasons mentioned here , I do not want to install it $LD_LIBRARY_PATHforever.

I transcoded with the same commands, this time with $LD_RUN_PATHa value set /usr/local/lib.
makeseem to be ignored $LD_RUN_PATHat compilation.

Is there a way to use $LD_RUN_PATHwithout major changes to the Makefile?

+5
source share
3 answers

(, )? "ffmpeg" , --enable-shared, .

, , LD_LIBRARY_PATH , "ffmpeg" LD_LIBRARY_PATH (, "LD_LIBRARY_PATH =/usr/local/lib/usr/local/bin/ffmpeg" ) .

, , : "LDFLAGS = '- L/my/strange/path/lib -Wl, -rpath/my/strange/path/lib" ". FFmpeg :

--extra-ldflags="-L/usr/local/lib -Wl,-rpath /usr/local/lib"

ffmpeg , .

.

+5

, , $LD_RUN_PATH , , - .

( - rpath, )

+2
  • LD_RUN_PATH , . /configure -Wl, -rpath linker cmdline ( , . , 486 mips32).

  • try running configure as follows:. / configure LDFLAGS = "- L / your / lib -Wl, -rpath-link = / your / lib" CPPFLAGS = "- I / your / include" --prefix = / tgt ...

    I recommend using -rpath-link instead of -rpath if / your directory is different from / tgt

+2
source

All Articles