PR_GetLibraryPath checks the wrong environment variable on many platforms. On XP_PC (which includes Windows and OS/2), it checks LD_LIBRARY_PATH. The correct environment variable for Windows is PATH. On Mac OS X, when USE_MACH_DYLD is defined, it should check DYLD_LIBRARY_PATH. On HP-UX, when USE_HPSHL is defined, it should check SHLIB_PATH. Right now it is not checking any environment variable. On AIX, it should check LIBPATH. http://mxr.mozilla.org/security/source/security/nss/cmd/shlibsign/sign.sh shows that we should check ADDON_PATH on some platform.
You need to log in before you can comment on or make changes to this bug.