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.
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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access