[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implicit linking of local .so



>> > #! /bin/sh
>> >
>> > # add directory to library search path
>> > if [ -z "$LD_LIBRARY_PATH" ] ; then
>> >     LD_LIBRARY_PATH="/directory/where/lib/is/"
>> > else
>> >     LD_LIBRARY_PATH="/directory/where/lib/is/:${LD_LIBRARY_PATH}"
>> > fi
>> >
>> > # this should be unnecessary, don't have time to read the man-page
>> > export LD_LIBRARY_PATH
>> 
>> This assumes bash, doesnt it?
>
>Well, it assumes a shell called '/bin/sh' - which on all existing UNIX/Linux
>varients is a 'Bourne-Shell' - or a close clone such as BASH. That's
>what the '#! /bin/sh' line at the top of the script does.
>
>Exporting LD_LIBRARY_PATH is certainly recommended.
>
>-- 
>Steve Baker                  http://web2.airmail.net/sjbaker1
>sjbaker1@airmail.net (home)  http://www.woodsoup.org/~sbaker
>sjbaker@hti.com      (work)



Ick. Well, it does solve the problem I guess. I was hoping for something
a little more transparent.

Jason