Kenwood HP 9000 Personal Computer User Manual


 
Chapter 5 137
Creating and Using Libraries
Creating Archive Libraries
Check with your system administrator before attempting to use
/usr/lib or /usr/lib/pa20_64.
Using /usr/local/lib or /usr/contrib/lib
The /usr/local/lib and /usr/local/lib/pa20_64 library typically
contain libraries created locally — by programmers on the system;
/usr/contrib/lib and /usr/contrib/lib/pa20_64 contain
libraries supplied with HP-UX but not supported by Hewlett-Packard.
Programmers can create their own libraries for both 32-bit and 64-bit
code using the same library name. Although ld does not automatically
search these directories, they are still often the best choice for locating
user-defined libraries because the directories are not write-protected.
Therefore, programmers can store the libraries in these directories
without super-user privileges. Use -L/usr/local/lib or
-L/usr/contrib/lib for 32-bit libraries, or
-L/usr/local/lib/pa20_64 or -L/usr/contrib/lib/pa20_64 for
64-bit libraries to tell the linker to search these directories.