summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 c4ac43c569..64e805c947 100644
--- a/meta/classes-global/base.bbclass
+++ b/meta/classes-global/base.bbclass
@@ -116,7 +116,7 @@ def setup_hosttools_dir(dest, toolsvar, d, fatal=True):
116 # /usr/local/bin/ccache/gcc -> /usr/bin/ccache, then which(gcc) 116 # /usr/local/bin/ccache/gcc -> /usr/bin/ccache, then which(gcc)
117 # would return /usr/local/bin/ccache/gcc, but what we need is 117 # would return /usr/local/bin/ccache/gcc, but what we need is
118 # /usr/bin/gcc, this code can check and fix that. 118 # /usr/bin/gcc, this code can check and fix that.
119 if "ccache" in srctool: 119 if os.path.islink(srctool) and os.path.basename(os.readlink(srctool)) == 'ccache':
120 srctool = bb.utils.which(path, tool, executable=True, direction=1) 120 srctool = bb.utils.which(path, tool, executable=True, direction=1)
121 if srctool: 121 if srctool:
122 os.symlink(srctool, desttool) 122 os.symlink(srctool, desttool)