Bugzilla – Bug 1869
prefer local build libraries to other build libraries
Last modified: 2014-03-13 09:55:41 UTC
When using bake to build ns-3, I encountered some unexpected behavior in which I could not get the loader to use newly modified shared libraries that I had later built in the ns-3-dev directory. Instead, it would always prefer the libraries found in the bake/build directory (built during the bake build step). I had to move out of the way the ../../build directory to get it to use the local build directory. The problem turned out to be the configuration environment variable NS3_MODULE_PATH, which appended bake build paths before the ns-3-dev/build path was appended. These bake build paths are appended when waf recurses into the various ns-3 modules that rely on external libraries (brite, click, openflow, internet). Additionally, the various modules append duplicate paths to NS3_MODULE_PATH.
Created attachment 1789 [details] patch to fix - append local build directory before recursing into src/ modules - remove duplicate path entries
pushed in changeset 10658:2a407999964e