From 894c4bd9d58df50c38c7a656cf085c48581439ef Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 29 Jan 2013 19:21:52 +0200 Subject: [PATCH] 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. --- source/component.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- 2.45.2