aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/install/rule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/install/rule.cxx')
-rw-r--r--libbuild2/install/rule.cxx9
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)
{