
names. However, HP recommends an alternative method. The dynamic linker, during its attempt to load libraries, will suffix candidate directories with the machine type. The HP XC system on the CP4000 platform uses i686 for
Figure 4-1 Library Directory Structure
If you have an existing pattern using different names, HP recommends introducing links with the above names. An example of this is shown in Figure
Figure 4-2 Recommended Library Directory Structure
Linking an application using the library (dynamic or archive) requires you to specify the appropriate subdirectory, depending on whether the application is
For example, to build a
<linkcommand> <32-bit> -L/opt/mypackage/lib/i686 -lmystuff
To build a 64-bit application, you might enter:
<linkcommand> <64-bit> -L/opt/mypackage/lib/x86_64 -lmystuff
4.8 Developing Libraries | 47 |