HP C A.06.05 Reference Manual

Compiling and Running HP C Programs
Compiling HP C Programs
Chapter 9 225
Invoking the toolset components will actually result in the invocation of tool set components
from the alternate location as specified above.
Setting TARGETROOT Environment Variable
The TARGETROOT environment variable is used as a prefix for all references to target set
components. This environment variable is set by the user when using a non-native
development kit. Some of the target set components are header files, archive libraries, and
shared libraries. If the HP C compiler has its large tool set installed in /opt/xdk-ia/
directory, the command:
export TARGETROOT=opt/xdk-ia
will prefix all references to the target tool set components with /opt/xdk-ia. The following
details the default location of the tool set components as specified in the above command and
its earlier location before the execution of the command:
NOTE Options like -l or -L on the command line will override $TARGETROOT
prefixing.
/opt/ansic/lbin/ecom (for A.06.*) /opt/xdk-ia/opt/ansic/lbin/ecom (for
A.06.*)
/opt/ansic/lbin/ctcom (for A.05.*) /opt/xdk-ia/opt/ansic/lbin/ctcom (for
A.05.*)
/opt/langtools/lbin/cpp.ansi /opt/xdk-ia/opt/langtools/lbin/cpp.ansi
/opt/langtools/lbin/u2comp /opt/xdk-ia/opt/langtools/lbin/u2comp
/opt/langtools/lbin/be /opt/xdk-ia/opt/langtools/lbin/be
Table 9-3 Native and Alternate Toolset Location
Native location Alternate Toolset Location
/usr/include /opt/xdk-ia/usr/include
/usr/lib /opt/xdk-ia/usr/lib
Table 9-2 Native and Alternate Toolset Location (Continued)
Native Location Alternate Toolset Location