[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Implicit linking of local .so
On Wed, 1 Dec 1999, Jan Ekholm wrote:
> Such as:
>
> #! /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?
A shorter way would then be to do
LD_LIBRARY_PATH="/directory/where/lib/is/:$LD_LIBRARY_PATH" /path/to/my/game
Mads
--
Mads Bondo Dydensborg. madsdyd@challenge.dk
Each generation has the right to determine its own culture. Culture isn't
just symphony orchestras, movies about dead British royalty and hard-bound
books. For some, culture is now also gaming, websites, chat and messaging
systems, TV shows, music and movies.
- Jon Katz, Slashdot, on youth culture.