Installed libraries are now linked dynamically. For non-installed
libraries, the package source path is added to libpath so the library
will be found.
base = FS::common_ancestor(base, *j);
build_info.incpath.push_back(base);
build_info.libs.push_back((*i)->get_name());
- build_info.libmodes[(*i)->get_name()] = BuildInfo::STATIC;
+ if(!(*i)->get_install())
+ {
+ build_info.libmodes[(*i)->get_name()] = BuildInfo::STATIC;
+ build_info.libpath.push_back((*i)->get_package().get_source_directory());
+ }
}
if(type==LIBRARY || type==MODULE)