aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/cc/common.cxx4
-rw-r--r--libbuild2/cc/pkgconfig.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/libbuild2/cc/common.cxx b/libbuild2/cc/common.cxx
index bf592cd..e11dea2 100644
--- a/libbuild2/cc/common.cxx
+++ b/libbuild2/cc/common.cxx
@@ -427,9 +427,9 @@ namespace build2
// /tmp/libfoo/lib{foo} or ../libfoo/lib{foo}) or a project-qualified
// relative target name (e.g., libfoo%lib{foo}).
//
- // Note that in case of the relative target that comes from export.libs,
+ // Note that in case of the relative target that comes from export.*libs,
// the resolution happens relative to the base scope of the target from
- // which this export.libs came, which is exactly what we want.
+ // which this export.*libs came, which is exactly what we want.
//
// Note that the scope, search paths, and the link order should all be
// derived from the library target that mentioned this name. This way we
diff --git a/libbuild2/cc/pkgconfig.cxx b/libbuild2/cc/pkgconfig.cxx
index 7fd07dc..35948de 100644
--- a/libbuild2/cc/pkgconfig.cxx
+++ b/libbuild2/cc/pkgconfig.cxx
@@ -1068,7 +1068,7 @@ namespace build2
// Set even if empty (export override).
//
{
- auto p (t.vars.insert (c_export_libs));
+ auto p (t.vars.insert (la ? c_export_imp_libs : c_export_libs));
if (p.second)
p.first.get () = move (libs);