To compile and link source files into a shared object module for INMOD or Notify Exit routines on an Opteron client system running Oracle Solaris, use the following syntax:
Compile Syntax
where the following is true:
- cc
- Call to the program that invokes the native UNIX C compiler
- -dy
- Specifies to use dynamic linking
- -G
- Produces a shared object-enabled for use with the run-time linker
- -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 or Notify Exit routine
- -o
- Specifies the output file name
- shared-object-name
- Name of the shared object file