For example, imagine that you wanted to use Sun??™s unbundled
compiler instead of gcc(1) under Solaris 2.5:
define(`confCC??, `/usr/opt/SUNWspro/bin/cc??)
The confCC macro might also be used to compile for testing with purify(1):
define(`confCC??, `/usr/local/bin/purify cc??)
Or you might need to use a specific version of gcc:
define(`confCC??, `gcc -V2.7.2.1??)
When compiling under Solaris with Sun??™s unbundled compiler, you will need to declare the
following two lines:
define(`confCC??, `/opt/SUNWspro/bin/cc??)
define(`confDEPEND_TYPE??, `Solaris??)
Here, a confDEPEND_TYPE of Solaris causes a Makefile to be constructed withcorrect dependencies
for Sun??™s unbundled compiler (?§2.7.10 on page 73).
The confCC macro provides the value used with the CC= Makefile directive. This value is
used to compile .o files from .c files, and to ld(1) the final sendmail executable.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
2.7 Build m4 Macro Reference | 73
2.7.6 confCCLINK
Linker to use when confCC is inappropriate (V8.14 and later) Build macro
Some build systems do not use the compiler to link executables. For such systems, it is now
possible to specify a linker to use in place of the compiler:
define(`confCCLINK??, `/builds/osx/compat/bin/ld??)
Because sendmail??™s build is tuned to work best with the compiler, redefining the linker may
not be as straightforward as you might expect.
Pages:
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154