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

RE: Implicit linking of local .so



On Tue, 30 Nov 1999, Erik wrote:


>you could append that path to your library path, so just one user gets a
>modified path. Another way would be to make a small bash script which sets the
>library path and then runs the program. I don't beleive it's possable for a
>binary to say what path to look in.

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

# run my game
/path/to/my/game 


---------------------+------------------------------------------------------
 Jan 'Chakie' Ekholm |    CS at Åbo Akademi University, Turku, Finland
    Linux Inside     | I'm the blue screen of death, no-one hears you scream