Linking
| Option name | Description |
|---|---|
| -e | When used together with the -shared (-qmkshrobj) option , specifies an entry point for a shared object. |
| -L | At link time, searches the directory path for library files specified by the -l option. |
| -l | Searches for the specified library file. The linker searches for libkey.so, and then libkey.a if libkey.so is not found. |
| -qcrt, -nostartfiles (-qnocrt) | Specifies whether system startup files are to be linked. |
| -qlib, -nodefaultlibs (-qnolib) | Specifies whether standard system libraries and XL C/C++ libraries are to be linked. |
| -R | At link time, writes search paths for shared libraries into the executable, so that these directories are searched at program run time for any required shared libraries. |
| -static (-qstaticlink) | Controls whether static or shared runtime libraries are linked into an application. |
| -X (-W) | -Xlinker option or -Wl,option passes the listed option directly to the linker. |
- -idirafter
- -imacros
- -iprefix
- -iquote
- -iwithprefix
- -pie
- -rdynamic
- -Xlinker


