Options for linker and collector

Option

Default

-linker

system-dependent

This option specifies the name of the linker for PureCoverage to invoke to produce the executable. Use this option only if you need to bypass the default linker.

The defaults are:

/bin/ld

/usr/ccs/bin/ld

 

 

-collector

none

This option specifies the name of the collector program to be used to sequence and collect static constructors in C++ code. It is mandatory to set this option to the name of the collector program if you are using the g++ compiler.

You can find the name of the collector program used by the g++ compiler with the command:

% g++ -v foo.cc

 

If the collector program is

/usr/local/lib/gcc-lib/sun-sparc-sunos4/2.1/ld

use the command:

% purecov -g++=yes -collector=\ /usr/local/lib/gcc-lib/sun-sparc-

4/2.1/ld \
 g++ foo.cc

Solaris 2 does not use a collector for C++ programs, so PureCoverage on Solaris ignores this option.