Name

confLIBS and conf_prog_LIBS

Synopsis

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.

The _prog_ part of the macro name is optional. If present, it should be the name of the specific program for which the build is being run. In the preceding example, -lwrap will be included in only the sendmail program’s build, but not in any other program’s build (as, for example, makemap). By excluding the _prog_ part of the macro name you create a declaration that affects all programs.

Note that for the mail.local program the _prog_ part can be either mail.local or mail_local with no difference in effect.

Get Sendmail, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.