[smpeg] SMPEG threading, SMPEG constructors

Ryan C. Gordon icculus at clutteredmind.org
Sun Jan 12 16:27:05 EST 2003

> how do I modify the command so that libraries from /usr/local/lib (or some
> other location X) are linked in either statically or dinamically?

Instead of -lsmpeg, specify the library directly
(/usr/local/lib/libsmpeg.so) so that it resolves against the right one at
link time, and then do this when running the program:

export LD_PRELOAD=/usr/local/lib/libsmpeg.so
./my_program_to_run command_line_arguments whatever blahblahblah

That will force the dynamic linker to favor your version of smpeg.

Alternately, get rid of the original version...uninstall the smpeg package
or just erase the original library file so that the linker will find
your's instead (but make sure /usr/local/lib is in your /etc/ld.so.conf
file and you've run ldconfig since then)...isn't Linux FUN?!  :)


More information about the smpeg mailing list