Sun MPI 4.0 Programming and Reference Guide

Overriding the Run-Time Library

As shown in the sample compile and link lines in Table 3-1, you use the -R flag in the compile and link line to specify the path for a run-time library when you are compiling. At run time, you can override the library specified in the -R argument by setting the LD_LIBRARY_PATH environment variable. For example, to link to the 32-bit trace libraries before running your program, do this:

% setenv LD_LIBRARY_PATH /opt/SUNWhpc/lib/tnf

(This is a C shell example.)