james wrote:
> I can't find any info on this, so it's prodly so obvious that only dumbkorfs
> ask :-)
>
> I have a program using a web cam. All is perfect except that I need to
>
> export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
>
> before running it.
>
> How can I compile the links into the code, rather than a PRELOAD env setting?
You can't.
Instead, create a wrapper script containing:
#!/bin/bash
export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
exec your-webcam-program
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html