LD_LIBRARY_PATH required for loading DSAPI filter

Hi Everybody. I want to load a dsapi filter webgate.so(in SunOne 5.9). But for loading this i need some other libraries. If i set the LD_LIBRARY_PATH variable to the path of shared libaries which are required to load webgate.so, this(webgate.so) DSAPI filter loads succesfully.

Is there any way so that i need not to set LD_LIBRARY_PATH before starting Dominos Server. Do i need to make changes in the Makefile for my DSAPI filter.

For AIX i dont need to set this LD_LIBRARY_PATH variable. It works perfectly.