7.27 confLIBDIRS
Linker -L switches Build macro
The confLIBDIRS macro defines the directories that are searched for library files (using the
linker??™s -L switch). The libraries in these directories are searched before the standard
system libraries. Consider the desire to have libraries in the path /usr/local/lib used by the
linker in preference to those in the standard library path:
APPENDDEF(`confLIBDIRS??, `-L/usr/local/lib??)
For example, multiple libraries can be searched by listing them in a single definition:
APPENDDEF(`confLIBDIRS??, `-L/usr/local/lib -L/usr/tools/lib??)
Note that the values defined for this macro must be prefixed by a literal -L. This
confLIBDIRS macro is often used in conjunction withth e confINCDIRS macro (?§2.7.19 on
page 78).
2.7.28 confLIBS and conf_prog_LIBS
Linker -l switches by program Build macro
The confLIBS and conf_prog_LIBS macros define a list of additional libraries to link against
by name (using the loader??™s -l switch). All devtools/OS files define defaults for this macro,
so be sure to APPENDDEF( ) to avoid overwriting your defaults:
APPENDDEF(`confLIBS??, `-ldb??)
APPENDDEF(`conf_sendmail_LIBS??, `-lwrap??)
It is unlikely that you will have to add or change libraries in this list. To discover any you
might need, run Build to completion and observe which routines the linker reports as
missing.
Pages:
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171