diff options
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 145daea3ec..5e5cf66322 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -127,6 +127,9 @@ def setup_hosttools_dir(dest, toolsvar, d, fatal=True): | |||
127 | for tool in tools: | 127 | for tool in tools: |
128 | desttool = os.path.join(dest, tool) | 128 | desttool = os.path.join(dest, tool) |
129 | if not os.path.exists(desttool): | 129 | if not os.path.exists(desttool): |
130 | # clean up dead symlink | ||
131 | if os.path.islink(desttool): | ||
132 | os.unlink(desttool) | ||
130 | srctool = bb.utils.which(path, tool, executable=True) | 133 | srctool = bb.utils.which(path, tool, executable=True) |
131 | # gcc/g++ may link to ccache on some hosts, e.g., | 134 | # gcc/g++ may link to ccache on some hosts, e.g., |
132 | # /usr/local/bin/ccache/gcc -> /usr/bin/ccache, then which(gcc) | 135 | # /usr/local/bin/ccache/gcc -> /usr/bin/ccache, then which(gcc) |