Can you test with -Wl,-rpath,$(USRLIBDIR) instead of -R? Just to make sure, but that is less compiler dependent.
Nope, Sun's ld does not know -rpath. '-Wl,-R,$(USRLIBDIR)' did work, though. -- Jörn Clausen joern.clausen%uni-bielefeld.de@localhost Hochschulrechenzentrum http://www.uni-bielefeld.de/hrz/ Universität Bielefeld