Name

MK_LIBDEPS — Common library dependencies

Synopsis

MODULES="... compiler ..."
mk_declare -i MK_LIBDEPS

Description

All libraries listed in this variable will be implicitly added to the LIBDEPS list of compiler functions such as mk_program. It does not affect configure tests.

This can help avoid repetition when building multiple libraries, programs, etc. that share common library dependencies. Take special care to avoid abusing it as linking extraneous libraries slows down the linker and incurs startup time and memory overhead at runtime.