"Some makedefs fixes for Solaris:
For multithreaded applications the -mt option must be specified on both
the compile and link steps, to ensure correct behaviour. According to
the Sun compiler documentation it sets REENTRANT flags in the system
header files, and links the -lthread library in the correct order.
When compiling shared libraries the -KPIC option should be specified.
Although Solaris will handle shared libraries without
position-independent code there is a performance penalty. The linker
reference manual says: 'If a shared object is built from code that is
not position-independent, the text segment will usually require a large
number of relocations to be performed at runtime. Although the runtime
linker is equipped to handle this, the system overhead this creates can
cause serious performance degradation'."