From: Mikko Rasa Date: Tue, 29 Jan 2013 17:21:52 +0000 (+0200) Subject: Improve use statement handling X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=894c4bd9d58df50c38c7a656cf085c48581439ef;p=builder.git Improve use statement handling Installed libraries are now linked dynamically. For non-installed libraries, the package source path is added to libpath so the library will be found. --- diff --git a/source/component.cpp b/source/component.cpp index 9ffbbf3..68c9b18 100644 --- a/source/component.cpp +++ b/source/component.cpp @@ -80,7 +80,11 @@ void Component::create_build_info() 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)