To generate a shared library, use the commands and options listed in the following table.
Table 1–2 Linker Commands and Options|
Platform |
Options |
|---|---|
|
SolarisTM Operating System (SPARC® Platform Edition) |
ld -G or cc -G |
|
Windows |
link -LD |
|
HP-UX |
cc +Z -b -Wl,+s -Wl,-B,symbolic |
|
AIX |
cc -p 0 -berok -blibpath:$(LD_RPATH) |
|
Compaq |
cc -shared |
|
Linux |
gcc -shared |
|
IRIX |
cc -shared |