diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-03-17 13:41:20 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-03-17 14:42:09 +0300 |
commit | 9ecae45525326034b0a7eeffaa3b96856c6c15c1 (patch) | |
tree | 4b6c024d55561ec791906d31e11de41a8e6f9f97 /libbuild2/install | |
parent | 35976f064a5fa790d7b9655a9dfd422703255cb7 (diff) |
Adapt install_l() to mkanylink() semantics change
Now mkanylink() always interprets a relative target from the link directory.
Diffstat (limited to 'libbuild2/install')
-rw-r--r-- | libbuild2/install/rule.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libbuild2/install/rule.cxx b/libbuild2/install/rule.cxx index 55ac536..23e1004 100644 --- a/libbuild2/install/rule.cxx +++ b/libbuild2/install/rule.cxx @@ -886,14 +886,7 @@ namespace build2 if (!ctx.dry_run) try { - // We have to go the roundabout way by adding directory to the target - // and then asking for a relative symlink because it may be a hardlink - // in which case the target path will be interpreted from CWD. - // - mkanylink (rell.directory () / target, - rell, - true /* copy */, - true /* relative */); + mkanylink (target, rell, true /* copy */); } catch (const pair<entry_type, system_error>& e) { |