To compile and link source files into a shared object module for INMOD, OUTMOD, or Notify Exit routines on an Opteron client system running Solaris use the following syntax:
where the following is true:
- cc
- Invokes the native UNIX C compiler
- -dy
- Specifies to use dynamic linking
- -G
- Specifies to create a shared object
- -xarch=generic64
- Flag to build 64-bit shared libraries
- -KPIC
- Compiler option that generates Position Independent Code
- sourcefile.c
- UNIX file name of the source file for the INMOD, OUTMOD or Notify Exit routine
- -o
- Specifies the output file name
- shared-object-name
- Specifies the resulting shared object module