Previous Section Next Section

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 with the confINCDIRS macro (confINCDIRS).

    Previous Section Next Section