HP MLIB User's Guide Vol. 2 7th Ed.

632 HP MLIB User’s Guide
Accessing LAPACK
cc [options] file ... /opt/mlib/lib/[pa2.0|pa20_64]/liblapack.a lcl lm
aCC
[options] file ... /opt/mlib/lib/[pa2.0|pa20_64]/liblapack.a lcl lm
Replace liblapack.a with liblapack.sl on your compiler command line if you
want to link the shared library on a PA-based system.
3. Use the
llapack option on the compiler command line that links your
program, preceded by:
Wl,–aarchive_shared,L/opt/mlib/lib/[pa2.0|pa20_64]
For example, the command lines in Method 2 for PA could be written:
f90 [options] file ... Wl,–aarchive_shared,L/opt/mlib/lib/[pa2.0|pa20_64]
llapack
cc
[options] file ... Wl,–aarchive_shared,L/opt/mlib/lib/[pa2.0|pa20_64]
llapack lcl lm
aCC
[options] file ... Wl,–aarchive_shared,L/opt/mlib/lib/[pa2.0|pa20_64]
llapack lcl lm
4. Set the LDOPTS environment variable to include:
–aarchive_shared,L/opt/mlib/lib/[pa2.0|pa20_64]
For example:
setenv LDOPTS “–aarchive_shared,–L/opt/mlib/lib/pa2.0”
Then use the llapack option on the compiler command line that links your
program:
f90 [options] file ... llapack
cc
[options] file ... llapack lcl lm
aCC
[options] file ... llapack lcl lm
NOTE An LDOPTS specification takes precedence over using -Wl on the
compiler command line. That is, if you use the LDOPTS environment
variable to specify a library path, you cannot override that specification
with a -Wl option on your compiler command line.
5. To link with the LAPACK8 libraries on a PA-based system, use the +DA2.0W
option to specify memory addresses are 64-bit.
Compile Fortran applications with the +i8, +autodbl, or +autodbl4 option
where:
+i8 promotes 4-byte integer of logical constants, intrinsics, and user
variables (declared as integer or logical) to 8-byte quantities.