HP Pascal/iX Reference Manual (31502-90022)

12- 68
Syntax
{
integer
}
$SHLIB_CODE {ON }$
{OFF }
Parameters
integer
Must be in the range 0..2.
Value Compiler generates:
0 Position dependent code.
1 Short load sequence PIC.
2 Long load sequence PIC.
ON Compiler generates short load sequence PIC.
OFF Compiler generates position dependent code.
Default OFF (Position dependent code).
Location At front.
Command Line Option +z or +Z
Programs that have been linked to shared libraries (.sl) use less disk
space than those linked to archive libraries (.a). Also, programs linked
to shared libraries get automatic updates when a new version of the
shared library is installed.
When compiling for a shared library use $SHLIB_CODE ON$ or $SHLIB_CODE
1$. However, if the number of external references in the resulting
shared library exceeds a system-dependent limit, use $SHLIB_CODE 2$. The
linker will indicate when the limit has been exceeded.
SHLIB_CODE is valid only when the target operating system is HP-UX (see
"OS" ). The resulting object file will link only HP-UX.
For more information about shared libraries and PIC, refer to
Programming
on HP-UX
.
SHLIB_VERSION
SHLIB_Version is a System-Dependent HP-UX Option.
The compiler option SHLIB_VERSION causes the compiler to place a shared
library version string into the resulting object file.
$SHLIB_VERSION 'string'$
Parameters
String Specifies the date stamp to be used by the linker for
shared library version control. Must be in the form:
mm/yy or mm/yyyy.
Default '01/1990'.
Location At front.
Example
$OS ‘HPUX'$
$SHLIB_CODE ON$
$SHLIB_VERSION ‘04/1990'$