HP MLIB for PA-RISC and Itanium2 HP-UX Version 9.5 Release Note
HP MLIB for PA-RISC and Itanium® 2 HP-UX Version 9.5 Release Note
Compatibility Information
22
Replace .a with .sl if you want to link the shared library on a PA-based operating
system.
• You can also use the following compile line commands to link VECLIB, LAPACK,
SOLVERS, or VMATH for use on a specific machine for PA 32- or 64-bit:
% f90 [+DD32|+DD64] [options] file ... -Wl,–aarchive_shared,-L/opt/
mlib/lib/[pa2.0|pa20_64] [-lveclib|-llapack|-lsolvers|-lvmath]
% cc [+DD32|+DD64] [options] file ... -Wl,–aarchive_shared,-L/opt/mlib/
lib/[pa2.0|pa20_64] [-lveclib|-llapack|-lsolvers|-lvmath] -lcl -lm
% aCC [+DD32|+DD64] [options] file ... -Wl,–aarchive_shared,-L/opt/
mlib/lib/[pa2.0|pa20_64] [-lveclib|-llapack|-lsolvers|-lvmath] -lcl -lm
If your program uses subprograms from more than one library, specify each library on the
compiler command line.
For ScaLAPACK or SuperLU_DIST:
% mpif90 [+DD32|+DD64] [options] file ... -Wl,–aarchive_shared,-L/
opt/mlib/lib/[pa2.0|pa20_64] [-lscalapack|-lsuperlu_dist]
% mpicc [+DD32|+DD64] [options] file ... -Wl,–aarchive_shared,-L/
opt/mlib/lib/[pa2.0|pa20_64] [-lscalapack|-lsuperlu_dist] -lcl -lm
% mpiCC [+DD32|+DD64] [options] file ... -Wl,–aarchive_shared,-L/
opt/mlib/lib/[pa2.0|pa20_64] [-lscalapack|-lsuperlu_dist] -lcl -lm
If your program uses subprograms from both ScaLAPACK and SuperLU_DIST, specify
both -lscalapack and -lsuperlu_dist on the compiler command line.
• Set the LDOPTS environment variable. An LDOPTS specification takes precedence over
using -Wl on the compiler command line. That is, if the LDOPTS environment variable is
used to specify a library path, you cannot override that specification with a -Wl option on
your compiler command line.
For example on PA-RISC systems:
% setenv LDOPTS –aarchive_shared,–L/opt/mlib/lib/[pa2.0|pa20_64]
Then use the -lveclib, -llapack, -lsolvers, or -lvmath option on the compiler
command line that links your program:
% f90 [options] file ...[–lveclib|-llapack|-lsolvers|-lvmath]
% cc [options] file ...[–lveclib|-llapack|-lsolvers|-lvmath] -lcl -lm
% aCC [options] file ...[–lveclib|-llapack|-lsolvers|-lvmath] -lcl -lm