From 9ecae45525326034b0a7eeffaa3b96856c6c15c1 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 17 Mar 2020 13:41:20 +0300 Subject: Adapt install_l() to mkanylink() semantics change Now mkanylink() always interprets a relative target from the link directory. --- libbuild2/install/rule.cxx | 9 +-------- 1 file changed, 1 insertion(+), 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& e) { -- cgit v1.1