Compile Syntax
Use the following syntax example to compile a Notify Exit Routine on an IBM AIX-based client.
where the following is true:
- cc
- Is a call to the program that invokes the native UNIX C compiler
- -c
- Is a compiler option that specifies to not send object files to the linkage editor
- -brtl
- Tells the linkage editor to accept both .sl and .a library file types
- -fPIC
- Is a compiler option that generates Position Independent Code (PIC) for all user exit routines
- sourcefile.c
- Is a C source module for the Notify Exit Routine.
Link Syntax
Use the following syntax example to link the object modules into a shared object module.
where the following is true:
- ld
- Invokes the UNIX linker editor
- G
- Produces a shared object enabled for use with the runtime linker
- -e_dynamn
- Sets the entry point of the exit routine to _dynamn
- -bE : export_dynamn.txt
- Is a linker option that exports the symbol "_dynamn" explicitly and the file export_dynamn.txt contains the symbol
- objectfile.o
- Is an object module created during compile step
- -o
- Specifies the output file name
- shared-object-name
- Specifies the resulting shared object module
- -lm
- Is a linker option specifying to link with the /lib/libm.a library
- -lc
- Is a linker option specifying to link with the /lib/libc.a library