confLIBS and conf_prog_LIBS

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.



Sendmail
sendmail, 4th Edition
ISBN: 0596510292
EAN: 2147483647
Year: 2002
Pages: 1174

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net