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.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes-global/base.bbclass b/meta/classes-global/base.bbclass
index 6de17d1bb5..cf303c237a 100644
--- a/meta/classes-global/base.bbclass
+++ b/meta/classes-global/base.bbclass
@@ -127,7 +127,11 @@ def setup_hosttools_dir(dest, toolsvar, d, fatal=True):
127 # clean up dead symlink 127 # clean up dead symlink
128 if os.path.islink(desttool): 128 if os.path.islink(desttool):
129 os.unlink(desttool) 129 os.unlink(desttool)
130 srctool = bb.utils.which(path, tool, executable=True) 130
131 # Prefer gnu-prefixed binaries, if available
132 srctool = (bb.utils.which(path, "gnu" + tool, executable=True) or
133 bb.utils.which(path, tool, executable=True))
134
131 # gcc/g++ may link to ccache on some hosts, e.g., 135 # gcc/g++ may link to ccache on some hosts, e.g.,
132 # /usr/local/bin/ccache/gcc -> /usr/bin/ccache, then which(gcc) 136 # /usr/local/bin/ccache/gcc -> /usr/bin/ccache, then which(gcc)
133 # would return /usr/local/bin/ccache/gcc, but what we need is 137 # would return /usr/local/bin/ccache/gcc, but what we need is