HP aC++/HP C A.06.20 Programmer's Guide
CCLIBDIR Environment Variable
The CCLIBDIR environment variable causes the aCC command to search for libraries
in an alternate directory before searching in the default directories.
Syntax:
export CCLIBDIR=directory ksh/sh notation
setenv CCLIBDIR directory csh notation
directory is an HP-UX directory where you want HP aC++ to look for libraries.
Example:
export CCLIBDIR=/mnt/proj/lib
In this example HP aC++ searches the directory /mnt/proj/lib for libraries before
searching the directory /opt/aCC/lib.
When CCLIBDIR is set a in the above example, the following two commands are
equivalent:
aCC -L/mnt/proj/lib file.o
aCC file.o
NOTE: You can use the -Ldirectory option to specify additional directories for
the linker to search for libraries.
CCROOTDIR Environment Variable
The CCROOTDIR environment variable causes aCC to invoke all subprocesses from an
alternate aCC directory, rather than from their default directory. The default aCC root
directory is /opt/aCC.
Syntax:
export CCROOTDIR=directory ksh/sh notation
setenv CCROOTDIR directory csh notation
directory is an aCC root directory where you want the HP aC++ driver to search for
subprocesses.
Example:
export CCROOTDIR=/mnt/CXX2.1
In this example, HP aC++ searches the directories under /mnt/CXX2.1 (/mnt/CXX2.1/
bin and /mnt/CXX2.1/lbin) for subprocesses rather than their respective default
directories.
TMPDIR Environment Variable
The TMPDIR environment variable allows you to change the location of temporary files
created by the compiler. The default directory is /var/tmp.
34 Getting Started with HP aC++