From: Geoffrey F. <fu...@us...> - 2001-08-22 23:09:48
|
Update of /cvsroot/plplot/plplot/src In directory usw-pr-cvs1:/tmp/cvs-serv8840/src Modified Files: plcore.c Log Message: Work a bit on the dynamic dirver location code for the post-install context. Currently we are storing the drivers and the database that describes them, under $prefix/lib/drivers/*. But plLibOpen doesn't look there, as it uses DATA_DIR instead, which is $prefix/lib/$plver/data. So if our first attempt to load the drivers database fails, try again with ../../ prepended, to bump up from DATA_DIR to LIB_DIR. Similarly, when loading the actual driver, if the first load attempt fails, resynthsize a full path (absolute, composed from LIB_DIR) and try again. With these mods, I am able to use dynamic drivers inside the Java binding, for clients using LD_LIBRARY_PATH = $plplot_prefix/lib. |