diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/utils.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass index 1965d2f1b4..e103351e34 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass | |||
@@ -289,7 +289,8 @@ create_cmdline_wrapper () { | |||
289 | cmdname=`basename $cmd`.real | 289 | cmdname=`basename $cmd`.real |
290 | cat <<END >$cmd | 290 | cat <<END >$cmd |
291 | #!/bin/sh | 291 | #!/bin/sh |
292 | exec \`dirname \$0\`/$cmdname "\$@" | 292 | realpath=\`readlink -fn \$0\` |
293 | exec \`dirname \$realpath\`/$cmdname "\$@" | ||
293 | END | 294 | END |
294 | chmod +x $cmd | 295 | chmod +x $cmd |
295 | } | 296 | } |