summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildtools/wafsamba/stale_files.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/buildtools/wafsamba/stale_files.py b/buildtools/wafsamba/stale_files.py
index dd4270dfde..2b94f0823e 100644
--- a/buildtools/wafsamba/stale_files.py
+++ b/buildtools/wafsamba/stale_files.py
@@ -73,7 +73,9 @@ def replace_refill_task_list(self):
for f in files:
p = root + '/' + f
if os.path.islink(p):
- p = os.readlink(p)
+ link = os.readlink(p)
+ if link[0:bin_base_len] == bin_base:
+ p = link
if f in ['config.h']:
continue
if f[-2:] not in [ '.c', '.h' ]: