summaryrefslogtreecommitdiffstats
path: root/meta/classes-global/base.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes-global/base.bbclass')
-rw-r--r--meta/classes-global/base.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-global/base.bbclass b/meta/classes-global/base.bbclass
index 8203f54519..2d0e35517e 100644
--- a/meta/classes-global/base.bbclass
+++ b/meta/classes-global/base.bbclass
@@ -139,7 +139,7 @@ def setup_hosttools_dir(dest, toolsvar, d, fatal=True):
139 # /usr/local/bin/ccache/gcc -> /usr/bin/ccache, then which(gcc) 139 # /usr/local/bin/ccache/gcc -> /usr/bin/ccache, then which(gcc)
140 # would return /usr/local/bin/ccache/gcc, but what we need is 140 # would return /usr/local/bin/ccache/gcc, but what we need is
141 # /usr/bin/gcc, this code can check and fix that. 141 # /usr/bin/gcc, this code can check and fix that.
142 if "ccache" in srctool: 142 if os.path.islink(srctool) and os.path.basename(os.readlink(srctool)) == 'ccache':
143 srctool = bb.utils.which(path, tool, executable=True, direction=1) 143 srctool = bb.utils.which(path, tool, executable=True, direction=1)
144 if srctool: 144 if srctool:
145 os.symlink(srctool, desttool) 145 os.symlink(srctool, desttool)