[comp.windows.x] Different dynamic loading libraries

reed@sakhmet.Princeton.EDU (Michael J. Reed) (01/12/91)

I have two sets of applications, one system wide set available on
/usr/princeton/bin/X11, one local set available in /usr/local/bin/X11.  Each has
their corresponding default files in /usr/princeton/lib/X11/app-defaults and
/usr/local/lib/X11/app-defaults, respectively.  

When I don't set 
	LD_LIBRARY_PATH=/usr/princeton/lib
some system wide applications load the local libraries and try to read the local
application files (which don't exist).

When I do set LD_LIBRARY_PATH, local applications load the princeton libaries
and only read the local application files if the system wide files do not
exist.

How do I arrange it so that system wide applications load system libraries,
local files load local libraries and, consequently, each loads the "right"
application defaults?

Thanks for any help,
Michael Reed