Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-13966

LIBDEPS_DEPENDENTS does not resolve library names the same as LIBDEPS

    • 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.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            sverch Shaun Verch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: