linkxlC is a small shell script that links C++ .o and .a files.
It can be redistributed, and then used if you do not have XL C/C++ installed.
linkxlC supports the following subset of the
xlC compiler
options:
- -q32 (build a 32-bit application)
- -q64 (build a 64-bit application)
- -b (pass linker options to ld)
- -f (pass a list of object files to ld)
- -l (pass a library to ld)
- -L (pass a library path to ld)
- -o (specify the output file)
- -s (strip output)
- -qtwolink (enable two-step linking)
linkxlC does not support the following compiler
options:
linkxlC accepts and ignores all other compiler
options.
Unlike
xlC,
linkxlC does
not specify any runtime libraries. You must specify these libraries
yourself. For example,
xlC a.o becomes:
linkxlC a.o -L/usr/lpp/vacpp/lib -lC -lm -lc