diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-11-04 13:41:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-11-04 13:41:23 +0200 |
commit | 65f77bb9a9556033a0bfb7401dd9a00120e27524 (patch) | |
tree | fe287d9986936f9240e6e8fecff5880684322fd9 /libbuild2/cc/link-rule.cxx | |
parent | 63fb9ab4e861e5110c3652e74270f76fb858c37a (diff) |
Do not apply install scope to update-for-install pre-operation
Diffstat (limited to 'libbuild2/cc/link-rule.cxx')
-rw-r--r-- | libbuild2/cc/link-rule.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libbuild2/cc/link-rule.cxx b/libbuild2/cc/link-rule.cxx index fa9a1f1..79de01c 100644 --- a/libbuild2/cc/link-rule.cxx +++ b/libbuild2/cc/link-rule.cxx @@ -2379,6 +2379,13 @@ namespace build2 // install or no install, the reason is unless and until we are updating // for install, we have no idea where-to things will be installed. // + // There is a further complication: we may have no intention of + // installing the library but still need to update it for install (see + // install_scope() for background). In which case we may still not have + // the installation directories. We handle this in pkconfig_save() by + // skipping the generation of .pc files (and letting the install rule + // complain if we do end up trying to install them). + // if (for_install && lt.library () && !lt.utility) { bool la (lt.static_library ()); |