-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Build
-
Fully Compatible
-
ALL
-
Platform 7 08/10/15
We have added an extension to scons that provides two variables, LIBDEPS and LIBDEPS_DEPENDENTS, to aid in dependency management.
Listing a library in LIBDEPS means that the current library depends on that library, while listing any target in LIBDEPS_DEPENDENTS means that the current library is depended on by that target.
Setting LIBDEPS=[ '<library name>' ] without any special pathnames, library prefixing information or special scons variables works because the LIBDEPS handling does that resolution automatically if it is not already there: https://github.com/mongodb/mongo/blob/master/site_scons/libdeps.py#L230
LIBDEPS_DEPENDENTS does not do this however, so it requires the full path, as well as the $BUILD_DIR, ${LIBSUFFIX}, and ${LIBPREFIX} variables.
Also, if the LIBDEPS_DEPENDENTS does not resolve correctly this is a "silent" failure, because failure to resolve just means scons never gets to it and simply doesn't compile it in.
- is duplicated by
-
SERVER-18368 LIBDEPS_DEPENDENTS should error for nonexistent libraries
- Closed