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
21
% f90 [options] file ... –Wl,–aarchive_shared,[-lveclib|-llapack|
-lsolvers|-lvmath]
% cc [options] file ... –Wl,–aarchive_shared,[-lveclib|-llapack|
-lsolvers|-lvmath] -lcl -lm
% aCC [options] file ... –Wl,–aarchive_shared,[-lveclib|-llapack|
-lsolvers|-lvmath] -lcl -lm
For ScaLAPACK or SuperLU_DIST use:
% mpif90 [options] file ... –Wl,–aarchive_shared,[-lscalapack|
-lsuperlu_dist]
% mpicc [options] file ... –Wl,–aarchive_shared,[-lscalapack|
-lsuperlu_dist] -lcl -lm
% mpiCC [options] file ... –Wl,–aarchive_shared,[-lscalapack|
-lsuperlu_dist] -lcl -lm
To select the shared library, either omit the -aarchive_shared flag or use the
-ashared_archive flag instead.
For programs that link VECLIB, LAPACK, SOLVERS, or VMATH for use on a specific
machine, you can specify the entire path of the library file on the compiler command line.
For example, the following commands link your program with VECLIB, LAPACK,
SOLVERS, or VMATH for use with 32-bit addressing on a PA-based operating system:
% f90 [options] file ... /opt/mlib/lib/pa2.0/[libveclib.a|liblapack.a|
libsolvers.a|libvmath.a]
% cc [options] file ... /opt/mlib/lib/pa2.0/[libveclib.a|liblapack.a|
libsolvers.a|libvmath.a] -lcl -lm
% aCC [options] file ... /opt/mlib/lib/pa2.0/[libveclib.a|liblapack.a|
libsolvers.a|libvmath.a] -lcl -lm
Replace .a with .sl if you want to link the shared library on a PA-based operating
system.
For ScaLAPACK or SuperLU_DIST use:
% mpif90 [options] file ... /opt/mlib/lib/pa2.0/[libscalapack.a|
libsuperlu_dist.a]
% mpicc [options] file ... /opt/mlib/lib/pa2.0/[libscalapack.a|
libsuperlu_dist.a] -lcl -lm
% mpiCC [options] file ... /opt/mlib/lib/pa2.0/[libscalapack.a|
libsuperlu_dist.a] -lcl -lm