When building and running a unittest with the + operator, tests fail to link if SCons was invoked with link-mode dynamic, install-mode hygienic.
SCons invocation:
python buildscripts/scons.py --link-model=dynamic VARIANT_DIR=ninja MONGO_VERSION="0.0.0" MONGO_GIT_HASH="unknown" CCACHE=ccache --disable-warnings-as-errors --ninja --install-mode=hygienic build.ninja
Error:
ninja +authenticate_test ... [2422/2423] Building +authenticate_test build/ninja/mongo/client/client_test: error while loading shared libraries: libunittest_main.so: cannot open shared object file: No such file or directory FAILED: +authenticate_test PATH=/usr/local/bin:/opt/bin:/bin:/usr/bin build/ninja/mongo/client/client_test -fileNameFilter authenticate_test